Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Doc/library/copy.rst.
  • Loading branch information
serhiy-storchaka committed Sep 1, 2023
commit 989d565a91ba74dd3d31ee89ac7d48a80a5f920b
4 changes: 2 additions & 2 deletions Doc/library/copy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ The memo dictionary should be treated as an opaque object.
single: __replace__() (replace protocol)

Function :func:`replace` is more limited than :func:`copy` and :func:`deepcopy`,
and only supports named tuples, dataclasses, and other classes which
define method :meth:`!__replace__`.
and only supports named tuples created by :func:`~collections.namedtuple`,
:mod:`dataclasses`, and other classes which define method :meth:`!__replace__`.

.. method:: __replace__(self, /, **changes)
:noindex:
Expand Down