[3.11] gh-65022: Fix description of tuple return value in copyreg (GH-103892) (#104098)

(cherry picked from commit 587f2f0180)
This commit is contained in:
Shantanu 2023-05-02 11:18:41 -07:00 committed by GitHub
parent 5e76305236
commit f9231a09be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,8 +28,8 @@ Such constructors may be factory functions or class instances.
.. function:: pickle(type, function, constructor_ob=None) .. function:: pickle(type, function, constructor_ob=None)
Declares that *function* should be used as a "reduction" function for objects Declares that *function* should be used as a "reduction" function for objects
of type *type*. *function* should return either a string or a tuple of type *type*. *function* must return either a string or a tuple
containing two or three elements. See the :attr:`~pickle.Pickler.dispatch_table` containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table`
for more details on the interface of *function*. for more details on the interface of *function*.
The *constructor_ob* parameter is a legacy feature and is now ignored, but if The *constructor_ob* parameter is a legacy feature and is now ignored, but if