File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ class PicklerMemoProxy:
6161class Pickler :
6262 fast : bool
6363 dispatch_table : Mapping [type , Callable [[Any ], _ReducedType ]]
64- reducer_override : Callable [[Any ], Any ]
6564 bin : bool # undocumented
6665 def __init__ (
6766 self ,
@@ -79,6 +78,10 @@ class Pickler:
7978
8079 # this method has no default implementation for Python < 3.13
8180 def persistent_id (self , obj : Any , / ) -> Any : ...
81+ # The following method is not defined on _Pickler, but can be defined on
82+ # sub-classes. Should return `NotImplemented` if pickling the supplied
83+ # object is not supported and returns the same types as `__reduce__()`.
84+ def reducer_override (self , obj : object , / ) -> _ReducedType : ...
8285
8386@type_check_only
8487class UnpicklerMemoProxy :
You can’t perform that action at this time.
0 commit comments