Skip to content

Commit 4e40b03

Browse files
eurestiJelleZijlstra
authored andcommitted
BaseException does not take keyword arguments (#2348)
Fixes #2344
1 parent 0c9f0d2 commit 4e40b03

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stdlib/2/__builtin__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ class memoryview(Sized, Container[bytes]):
966966
class BaseException(object):
967967
args = ... # type: Tuple[Any, ...]
968968
message = ... # type: Any
969-
def __init__(self, *args: object, **kwargs: object) -> None: ...
969+
def __init__(self, *args: object) -> None: ...
970970
def __getitem__(self, i: int) -> Any: ...
971971
def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...
972972

stdlib/2/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ class memoryview(Sized, Container[bytes]):
966966
class BaseException(object):
967967
args = ... # type: Tuple[Any, ...]
968968
message = ... # type: Any
969-
def __init__(self, *args: object, **kwargs: object) -> None: ...
969+
def __init__(self, *args: object) -> None: ...
970970
def __getitem__(self, i: int) -> Any: ...
971971
def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...
972972

stdlib/3/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ class BaseException:
942942
__cause__ = ... # type: Optional[BaseException]
943943
__context__ = ... # type: Optional[BaseException]
944944
__traceback__ = ... # type: Optional[TracebackType]
945-
def __init__(self, *args: object, **kwargs: object) -> None: ...
945+
def __init__(self, *args: object) -> None: ...
946946
def with_traceback(self, tb: Optional[TracebackType]) -> BaseException: ...
947947

948948
class GeneratorExit(BaseException): ...

0 commit comments

Comments
 (0)