mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
Add object.__getstate__() in Python 3.11+ (#10091)
This commit is contained in:
1 parent
ca3611238b
commit
b4ad214754
1 file changed
+2
@@ -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