Skip to content

Commit 494f8da

Browse files
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29447)
Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 77a2c77) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 6603f6b commit 494f8da

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/glossary.rst

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

522522
generic type
523-
A :term:`type` that can be parameterized; typically a container like
524-
:class:`list`. Used for :term:`type hints <type hint>` and
523+
A :term:`type` that can be parameterized; typically a
524+
:ref:`container class<sequence-types>` such as :class:`list` or
525+
:class:`dict`. Used for :term:`type hints <type hint>` and
525526
:term:`annotations <annotation>`.
526527

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

530531
GIL
531532
See :term:`global interpreter lock`.

0 commit comments

Comments
 (0)