Skip to content

Commit a3afdca

Browse files
authored
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197)
(cherry picked from commit 184bd82)
1 parent ee0572f commit a3afdca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ field names, the method and attribute names start with an underscore.
855855
.. versionchanged:: 3.1
856856
Returns an :class:`OrderedDict` instead of a regular :class:`dict`.
857857

858-
.. method:: somenamedtuple._replace(kwargs)
858+
.. method:: somenamedtuple._replace(**kwargs)
859859

860860
Return a new instance of the named tuple replacing specified fields with new
861861
values::

0 commit comments

Comments
 (0)