From 050f6fc69586ec9d5b67317dae1dbd85418a58ad Mon Sep 17 00:00:00 2001 From: David Euresti Date: Fri, 27 Jul 2018 07:31:17 -0700 Subject: [PATCH 1/2] BaseException does not take keyword arguments Fixes #2344 --- stdlib/2/__builtin__.pyi | 2 +- stdlib/3/builtins.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index a1d1e49aed48..2e9ea8591b80 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -966,7 +966,7 @@ class memoryview(Sized, Container[bytes]): class BaseException(object): args = ... # type: Tuple[Any, ...] message = ... # type: Any - def __init__(self, *args: object, **kwargs: object) -> None: ... + def __init__(self, *args: object) -> None: ... def __getitem__(self, i: int) -> Any: ... def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ... diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index cf2a8cdb1206..78c598592c77 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -942,7 +942,7 @@ class BaseException: __cause__ = ... # type: Optional[BaseException] __context__ = ... # type: Optional[BaseException] __traceback__ = ... # type: Optional[TracebackType] - def __init__(self, *args: object, **kwargs: object) -> None: ... + def __init__(self, *args: object) -> None: ... def with_traceback(self, tb: Optional[TracebackType]) -> BaseException: ... class GeneratorExit(BaseException): ... From 3e4ead94d102961f450a4d70e91c8ff3e501268f Mon Sep 17 00:00:00 2001 From: David Euresti Date: Fri, 27 Jul 2018 11:37:50 -0700 Subject: [PATCH 2/2] Fix CI --- stdlib/2/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/builtins.pyi b/stdlib/2/builtins.pyi index a1d1e49aed48..2e9ea8591b80 100644 --- a/stdlib/2/builtins.pyi +++ b/stdlib/2/builtins.pyi @@ -966,7 +966,7 @@ class memoryview(Sized, Container[bytes]): class BaseException(object): args = ... # type: Tuple[Any, ...] message = ... # type: Any - def __init__(self, *args: object, **kwargs: object) -> None: ... + def __init__(self, *args: object) -> None: ... def __getitem__(self, i: int) -> Any: ... def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...