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

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