BaseException.__init__ accepts **kwargs (#1704)

This commit is contained in:
anentropic authored and Jelle Zijlstra committed 2017-11-03 23:10:34 -07:00
1 parent 81191e49a3
commit 05f527c089
2 files changed
+2 -2

No files matched your search

+1 -1
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):