Skip to content

Commit

Permalink
[0.931 backport] Fix __reduce__ regression (#11866)
Browse files Browse the repository at this point in the history
Co-authored-by: hauntsaninja <>
  • Loading branch information
hauntsaninja authored and JukkaL committed Jan 5, 2022
1 parent bc22e2a commit 8ce64ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mypy/typeshed/stdlib/builtins.pyi
Expand Up @@ -100,11 +100,13 @@ class object:
def __getattribute__(self, __name: str) -> Any: ...
def __delattr__(self, __name: str) -> None: ...
def __sizeof__(self) -> int: ...
def __reduce__(self) -> str | Tuple[object, ...]: ...
# return type of pickle methods is rather hard to express in the current type system
# see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__
def __reduce__(self) -> str | Tuple[Any, ...]: ...
if sys.version_info >= (3, 8):
def __reduce_ex__(self, __protocol: SupportsIndex) -> str | Tuple[object, ...]: ...
def __reduce_ex__(self, __protocol: SupportsIndex) -> str | Tuple[Any, ...]: ...
else:
def __reduce_ex__(self, __protocol: int) -> str | Tuple[object, ...]: ...
def __reduce_ex__(self, __protocol: int) -> str | Tuple[Any, ...]: ...
def __dir__(self) -> Iterable[str]: ...
def __init_subclass__(cls) -> None: ...

Expand Down

0 comments on commit 8ce64ac

Please sign in to comment.