Skip to content

Commit f9231a0

Browse files
authored
[3.11] gh-65022: Fix description of tuple return value in copyreg (GH-103892) (#104098)
(cherry picked from commit 587f2f0)
1 parent 5e76305 commit f9231a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Doc/library/copyreg.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Such constructors may be factory functions or class instances.
2828
.. function:: pickle(type, function, constructor_ob=None)
2929

3030
Declares that *function* should be used as a "reduction" function for objects
31-
of type *type*. *function* should return either a string or a tuple
32-
containing two or three elements. See the :attr:`~pickle.Pickler.dispatch_table`
31+
of type *type*. *function* must return either a string or a tuple
32+
containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table`
3333
for more details on the interface of *function*.
3434

3535
The *constructor_ob* parameter is a legacy feature and is now ignored, but if

0 commit comments

Comments
 (0)