Skip to content

Commit ab76d37

Browse files
gh-101100: Fix Sphinx reference warnings in the glossary (#114729)
Co-authored-by: Alex Waygood <[email protected]>
1 parent a4c298c commit ab76d37

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/glossary.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Glossary
341341
docstring
342342
A string literal which appears as the first expression in a class,
343343
function or module. While ignored when the suite is executed, it is
344-
recognized by the compiler and put into the :attr:`__doc__` attribute
344+
recognized by the compiler and put into the :attr:`!__doc__` attribute
345345
of the enclosing class, function or module. Since it is available via
346346
introspection, it is the canonical place for documentation of the
347347
object.
@@ -1104,10 +1104,12 @@ Glossary
11041104
The :class:`collections.abc.Sequence` abstract base class
11051105
defines a much richer interface that goes beyond just
11061106
:meth:`~object.__getitem__` and :meth:`~object.__len__`, adding
1107-
:meth:`count`, :meth:`index`, :meth:`~object.__contains__`, and
1107+
:meth:`!count`, :meth:`!index`, :meth:`~object.__contains__`, and
11081108
:meth:`~object.__reversed__`. Types that implement this expanded
11091109
interface can be registered explicitly using
1110-
:func:`~abc.ABCMeta.register`.
1110+
:func:`~abc.ABCMeta.register`. For more documentation on sequence
1111+
methods generally, see
1112+
:ref:`Common Sequence Operations <typesseq-common>`.
11111113

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

0 commit comments

Comments
 (0)