Add object.__getstate__() in Python 3.11+ (#10091)

This commit is contained in:
Christian Bundy
2023-04-27 05:05:54 -07:00
committed by GitHub
parent ca3611238b
commit b4ad214754

View File

@@ -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: ...