From 05f527c0895bbe48e0af1d315c373d40a98e3ab5 Mon Sep 17 00:00:00 2001 From: anentropic Date: Sat, 4 Nov 2017 06:10:34 +0000 Subject: [PATCH] BaseException.__init__ accepts **kwargs (#1704) --- 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 0b8dfb1b3..47edbd8e9 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -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): diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 7780fccc8..91d4fe6a4 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -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): ...