Skip to content

Commit e9ea514

Browse files
committed
Use :noindexentry:
1 parent 15de5b9 commit e9ea514

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/copy.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ In order for a class to define its own copy implementation, it can define
9191
special methods :meth:`~object.__copy__` and :meth:`~object.__deepcopy__`.
9292

9393
.. method:: object.__copy__(self)
94-
:noindex:
94+
:noindexentry:
9595

9696
Called to implement the shallow copy operation;
9797
no additional arguments are passed.
9898

9999
.. method:: object.__deepcopy__(self, memo)
100-
:noindex:
100+
:noindexentry:
101101

102102
Called to implement the deep copy operation; it is passed one
103103
argument, the *memo* dictionary. If the ``__deepcopy__`` implementation needs
@@ -114,7 +114,7 @@ and only supports named tuples created by :func:`~collections.namedtuple`,
114114
:mod:`dataclasses`, and other classes which define method :meth:`~object.__replace__`.
115115

116116
.. method:: object.__replace__(self, /, **changes)
117-
:noindex:
117+
:noindexentry:
118118

119119
This method should create a new object of the same type,
120120
replacing fields with values from *changes*.

0 commit comments

Comments
 (0)