OSError.errno can be None (#12910)

This commit is contained in:
Sam Bull
2024-10-27 20:51:23 +00:00
committed by GitHub
parent 61ba4de28f
commit 601ce5a4b0

View File

@@ -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