Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
Typo fix: malformed refs
Fix `generic` links which weren't marked as `:ref:`.
  • Loading branch information
sirosen committed May 25, 2026
commit cf6e6b6f901c213b9f1e06fcd0d506ba8a50e373
2 changes: 1 addition & 1 deletion Doc/library/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ their subgroups based on the types of the contained exceptions.
raises a :exc:`TypeError` if any contained exception is not an
:exc:`Exception` subclass.

Exception groups are `generic <generics>` over the type of their inner
Exception groups are :ref:`generic <generics>` over the type of their inner
exceptions.

.. impl-detail::
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ are always available. They are listed here in alphabetical order.
yield n, elem
n += 1

Enumerations are `generic <generics>` over the type of their values.
Enumerations are :ref:`generic <generics>` over the type of their values.

.. _func-eval:

Expand Down
8 changes: 4 additions & 4 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ application).
built-in.


lists are `generic <generics>` over the types of their contents.
Lists are :ref:`generic <generics>` over the types of their contents.
Comment thread
sirosen marked this conversation as resolved.
Outdated

Lists implement all of the :ref:`common <typesseq-common>` and
:ref:`mutable <typesseq-mutable>` sequence operations. Lists also provide the
Expand Down Expand Up @@ -1497,7 +1497,7 @@ homogeneous data is needed (such as allowing storage in a :class:`set` or
Tuples implement all of the :ref:`common <typesseq-common>` sequence
operations.

Tuples are `generic <generics>` over the types of their contents.
Tuples are :ref:`generic <generics>` over the types of their contents.
The type arguments to a tuple should match the types and arity of the contents.
Comment thread
sirosen marked this conversation as resolved.
Outdated
For example, use ``tuple[int, str]`` for a pair whose first element is an int and second element is a string.
Tuples also support the form ``tuple[T, ...]`` to indicate an arbitrary length tuple of elements of type T.
Expand Down Expand Up @@ -4673,7 +4673,7 @@ copying.
True


memoryviews are `generic <generics>` over the type of their contents, as
memoryviews are :ref:`generic <generics>` over the type of their contents, as
retrieved by indexing.

.. versionchanged:: 3.3
Expand Down Expand Up @@ -5293,7 +5293,7 @@ Note, the *elem* argument to the :meth:`~object.__contains__`,
frozenset, a temporary one is created from *elem*.


Sets and frozensets are `generic <generics>` over the type of their contents.
Sets and frozensets are :ref:`generic <generics>` over the type of their contents.
Comment thread
sirosen marked this conversation as resolved.
Outdated

.. seealso::

Expand Down
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3854,8 +3854,8 @@ Coroutines also have the methods listed below, which are analogous to
those of generators (see :ref:`generator-methods`). However, unlike
generators, coroutines do not directly support iteration.

Coroutines are `generic <generics>` over the types of their yield, send, and
return values, respectively.
Coroutines are :ref:`generic <generics>` over the types of their yield, send,
and return values, respectively.

.. versionchanged:: 3.5.2
It is a :exc:`RuntimeError` to await on a coroutine more than once.
Expand Down
Loading