mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Add object.__getstate__() in Python 3.11+ (#10091)
This commit is contained in:
@@ -108,6 +108,8 @@ class object:
|
||||
def __reduce_ex__(self, __protocol: SupportsIndex) -> str | tuple[Any, ...]: ...
|
||||
else:
|
||||
def __reduce_ex__(self, __protocol: int) -> str | tuple[Any, ...]: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def __getstate__(self) -> object: ...
|
||||
|
||||
def __dir__(self) -> Iterable[str]: ...
|
||||
def __init_subclass__(cls) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user