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