From 8f33ff9e9d59cdc0c48448974074e7e5f269f750 Mon Sep 17 00:00:00 2001 From: pranavrajpal <78008260+pranavrajpal@users.noreply.github.com> Date: Mon, 30 May 2022 02:33:55 -0700 Subject: [PATCH] Add `__setstate__` for BaseException (#7987) --- stdlib/builtins.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 53b3cdd06..f91cb674c 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1678,6 +1678,7 @@ class BaseException: __suppress_context__: bool __traceback__: TracebackType | None def __init__(self, *args: object) -> None: ... + def __setstate__(self, __state: dict[str, Any] | None) -> None: ... def with_traceback(self: Self, __tb: TracebackType | None) -> Self: ... if sys.version_info >= (3, 11): # only present after add_note() is called