Mark OSError.strerror as sometimes None (#12974)

This commit is contained in:
Brian Schubert
2024-11-07 11:08:28 -05:00
committed by GitHub
parent 502e168cc6
commit dafd67c2cc

View File

@@ -1917,7 +1917,7 @@ class StopIteration(Exception):
class OSError(Exception):
errno: int | None
strerror: str
strerror: str | None
# filename, filename2 are actually str | bytes | None
filename: Any
filename2: Any