mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 04:37:04 +08:00
Add __setstate__ for BaseException (#7987)
This commit is contained in:
1 parent
1aa546d07d
commit
8f33ff9e9d
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user