BaseException.__init__ accepts **kwargs (#1704)

This commit is contained in:
anentropic
2017-11-04 06:10:34 +00:00
committed by Jelle Zijlstra
parent 81191e49a3
commit 05f527c089
2 changed files with 2 additions and 2 deletions

View File

@@ -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):