From c0ed8fdba281c60cd275cbb3363e8c94c2718a24 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 26 Oct 2024 12:56:08 +0100 Subject: [PATCH] OSError.errno can be None --- stdlib/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 1e0ed7336cfb..2fea1b29a434 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1916,7 +1916,7 @@ class StopIteration(Exception): value: Any class OSError(Exception): - errno: int + errno: int | None strerror: str # filename, filename2 are actually str | bytes | None filename: Any