Skip to content

Commit 964d1d7

Browse files
authored
Add BaseException.__new__ (#12346)
1 parent 1b560bb commit 964d1d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,6 +1868,7 @@ class BaseException:
18681868
__suppress_context__: bool
18691869
__traceback__: TracebackType | None
18701870
def __init__(self, *args: object) -> None: ...
1871+
def __new__(cls, *args: Any, **kwds: Any) -> Self: ...
18711872
def __setstate__(self, state: dict[str, Any] | None, /) -> None: ...
18721873
def with_traceback(self, tb: TracebackType | None, /) -> Self: ...
18731874
if sys.version_info >= (3, 11):

0 commit comments

Comments
 (0)