mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
BaseException.__init__ accepts **kwargs (#1704)
This commit is contained in:
committed by
Jelle Zijlstra
parent
81191e49a3
commit
05f527c089
@@ -873,7 +873,7 @@ class memoryview(Sized, Container[bytes]):
|
||||
class BaseException(object):
|
||||
args = ... # type: Tuple[Any, ...]
|
||||
message = ... # type: str
|
||||
def __init__(self, *args: Any) -> None: ...
|
||||
def __init__(self, *args: object, **kwargs: object) -> None: ...
|
||||
class GeneratorExit(BaseException): ...
|
||||
class KeyboardInterrupt(BaseException): ...
|
||||
class SystemExit(BaseException):
|
||||
|
||||
@@ -902,7 +902,7 @@ class BaseException:
|
||||
__cause__ = ... # type: BaseException
|
||||
__context__ = ... # type: BaseException
|
||||
__traceback__ = ... # type: TracebackType
|
||||
def __init__(self, *args: object) -> None: ...
|
||||
def __init__(self, *args: object, **kwargs: object) -> None: ...
|
||||
def with_traceback(self, tb: Any) -> BaseException: ...
|
||||
|
||||
class GeneratorExit(BaseException): ...
|
||||
|
||||
Reference in New Issue
Block a user