Skip to content

Commit 8f33ff9

Browse files
authored
Add __setstate__ for BaseException (#7987)
1 parent 1aa546d commit 8f33ff9

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
@@ -1678,6 +1678,7 @@ class BaseException:
16781678
__suppress_context__: bool
16791679
__traceback__: TracebackType | None
16801680
def __init__(self, *args: object) -> None: ...
1681+
def __setstate__(self, __state: dict[str, Any] | None) -> None: ...
16811682
def with_traceback(self: Self, __tb: TracebackType | None) -> Self: ...
16821683
if sys.version_info >= (3, 11):
16831684
# only present after add_note() is called

0 commit comments

Comments
 (0)