Skip to content

Commit 34ab494

Browse files
miss-islingtonsmontanaroAlexWaygood
authored
[3.11] gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729) (#114970)
gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729) (cherry picked from commit ab76d37) Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
1 parent e846c88 commit 34ab494

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/glossary.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Glossary
350350
docstring
351351
A string literal which appears as the first expression in a class,
352352
function or module. While ignored when the suite is executed, it is
353-
recognized by the compiler and put into the :attr:`__doc__` attribute
353+
recognized by the compiler and put into the :attr:`!__doc__` attribute
354354
of the enclosing class, function or module. Since it is available via
355355
introspection, it is the canonical place for documentation of the
356356
object.
@@ -1101,10 +1101,12 @@ Glossary
11011101
The :class:`collections.abc.Sequence` abstract base class
11021102
defines a much richer interface that goes beyond just
11031103
:meth:`~object.__getitem__` and :meth:`~object.__len__`, adding
1104-
:meth:`count`, :meth:`index`, :meth:`~object.__contains__`, and
1104+
:meth:`!count`, :meth:`!index`, :meth:`~object.__contains__`, and
11051105
:meth:`~object.__reversed__`. Types that implement this expanded
11061106
interface can be registered explicitly using
1107-
:func:`~abc.ABCMeta.register`.
1107+
:func:`~abc.ABCMeta.register`. For more documentation on sequence
1108+
methods generally, see
1109+
:ref:`Common Sequence Operations <typesseq-common>`.
11081110

11091111
set comprehension
11101112
A compact way to process all or part of the elements in an iterable and

0 commit comments

Comments
 (0)