Use OSError instead of IOError (#9683)

This commit is contained in:
Nikita Sobolev
2023-02-06 21:56:32 +03:00
committed by GitHub
parent c96079f0df
commit f7cb7f33b2
6 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ from urllib.response import addinfourl
__all__ = ["URLError", "HTTPError", "ContentTooShortError"]
class URLError(IOError):
class URLError(OSError):
reason: str | BaseException
def __init__(self, reason: str | BaseException, filename: str | None = None) -> None: ...