Skip to content

Commit 643f50c

Browse files
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448)
Co-authored-by: Łukasz Langa <[email protected]> (cherry picked from commit 77a2c77) Co-authored-by: Alex Waygood <[email protected]>
1 parent a932631 commit 643f50c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/glossary.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,13 @@ Glossary
485485
:func:`functools.singledispatch` decorator, and :pep:`443`.
486486

487487
generic type
488-
A :term:`type` that can be parameterized; typically a container like
489-
:class:`list`. Used for :term:`type hints <type hint>` and
488+
A :term:`type` that can be parameterized; typically a
489+
:ref:`container class<sequence-types>` such as :class:`list` or
490+
:class:`dict`. Used for :term:`type hints <type hint>` and
490491
:term:`annotations <annotation>`.
491492

492-
See :pep:`483` for more details, and :mod:`typing` or
493-
:ref:`generic alias type <types-genericalias>` for its uses.
493+
For more details, see :ref:`generic alias types<types-genericalias>`,
494+
:pep:`483`, :pep:`484`, :pep:`585`, and the :mod:`typing` module.
494495

495496
GIL
496497
See :term:`global interpreter lock`.

0 commit comments

Comments
 (0)