mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Delete builtins._StandardError (#8806)
This commit is contained in:
@@ -1804,8 +1804,6 @@ class Exception(BaseException): ...
|
||||
class StopIteration(Exception):
|
||||
value: Any
|
||||
|
||||
_StandardError = Exception
|
||||
|
||||
class OSError(Exception):
|
||||
errno: int
|
||||
strerror: str
|
||||
@@ -1820,38 +1818,38 @@ IOError = OSError
|
||||
if sys.platform == "win32":
|
||||
WindowsError = OSError
|
||||
|
||||
class ArithmeticError(_StandardError): ...
|
||||
class AssertionError(_StandardError): ...
|
||||
class ArithmeticError(Exception): ...
|
||||
class AssertionError(Exception): ...
|
||||
|
||||
class AttributeError(_StandardError):
|
||||
class AttributeError(Exception):
|
||||
if sys.version_info >= (3, 10):
|
||||
def __init__(self, *args: object, name: str | None = ..., obj: object = ...) -> None: ...
|
||||
name: str
|
||||
obj: object
|
||||
|
||||
class BufferError(_StandardError): ...
|
||||
class EOFError(_StandardError): ...
|
||||
class BufferError(Exception): ...
|
||||
class EOFError(Exception): ...
|
||||
|
||||
class ImportError(_StandardError):
|
||||
class ImportError(Exception):
|
||||
def __init__(self, *args: object, name: str | None = ..., path: str | None = ...) -> None: ...
|
||||
name: str | None
|
||||
path: str | None
|
||||
msg: str # undocumented
|
||||
|
||||
class LookupError(_StandardError): ...
|
||||
class MemoryError(_StandardError): ...
|
||||
class LookupError(Exception): ...
|
||||
class MemoryError(Exception): ...
|
||||
|
||||
class NameError(_StandardError):
|
||||
class NameError(Exception):
|
||||
if sys.version_info >= (3, 10):
|
||||
name: str
|
||||
|
||||
class ReferenceError(_StandardError): ...
|
||||
class RuntimeError(_StandardError): ...
|
||||
class ReferenceError(Exception): ...
|
||||
class RuntimeError(Exception): ...
|
||||
|
||||
class StopAsyncIteration(Exception):
|
||||
value: Any
|
||||
|
||||
class SyntaxError(_StandardError):
|
||||
class SyntaxError(Exception):
|
||||
msg: str
|
||||
lineno: int | None
|
||||
offset: int | None
|
||||
@@ -1861,9 +1859,9 @@ class SyntaxError(_StandardError):
|
||||
end_lineno: int | None
|
||||
end_offset: int | None
|
||||
|
||||
class SystemError(_StandardError): ...
|
||||
class TypeError(_StandardError): ...
|
||||
class ValueError(_StandardError): ...
|
||||
class SystemError(Exception): ...
|
||||
class TypeError(Exception): ...
|
||||
class ValueError(Exception): ...
|
||||
class FloatingPointError(ArithmeticError): ...
|
||||
class OverflowError(ArithmeticError): ...
|
||||
class ZeroDivisionError(ArithmeticError): ...
|
||||
|
||||
Reference in New Issue
Block a user