File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,13 @@ class object:
100
100
def __getattribute__ (self , __name : str ) -> Any : ...
101
101
def __delattr__ (self , __name : str ) -> None : ...
102
102
def __sizeof__ (self ) -> int : ...
103
- def __reduce__ (self ) -> str | Tuple [object , ...]: ...
103
+ # return type of pickle methods is rather hard to express in the current type system
104
+ # see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__
105
+ def __reduce__ (self ) -> str | Tuple [Any , ...]: ...
104
106
if sys .version_info >= (3 , 8 ):
105
- def __reduce_ex__ (self , __protocol : SupportsIndex ) -> str | Tuple [object , ...]: ...
107
+ def __reduce_ex__ (self , __protocol : SupportsIndex ) -> str | Tuple [Any , ...]: ...
106
108
else :
107
- def __reduce_ex__ (self , __protocol : int ) -> str | Tuple [object , ...]: ...
109
+ def __reduce_ex__ (self , __protocol : int ) -> str | Tuple [Any , ...]: ...
108
110
def __dir__ (self ) -> Iterable [str ]: ...
109
111
def __init_subclass__ (cls ) -> None : ...
110
112
You can’t perform that action at this time.
0 commit comments