mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-14 23:32:22 +08:00
Use OSError instead of IOError (#9683)
This commit is contained in:
@@ -113,7 +113,7 @@ else:
|
||||
SIGXCPU: Signals
|
||||
SIGXFSZ: Signals
|
||||
|
||||
class ItimerError(IOError): ...
|
||||
class ItimerError(OSError): ...
|
||||
ITIMER_PROF: int
|
||||
ITIMER_REAL: int
|
||||
ITIMER_VIRTUAL: int
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user