Skip to content

Commit 77a2c77

Browse files
AlexWaygoodambv
andauthored
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388)
Co-authored-by: Łukasz Langa <[email protected]>
1 parent 6ecead1 commit 77a2c77

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
@@ -510,12 +510,13 @@ Glossary
510510
:func:`functools.singledispatch` decorator, and :pep:`443`.
511511

512512
generic type
513-
A :term:`type` that can be parameterized; typically a container like
514-
:class:`list`. Used for :term:`type hints <type hint>` and
513+
A :term:`type` that can be parameterized; typically a
514+
:ref:`container class<sequence-types>` such as :class:`list` or
515+
:class:`dict`. Used for :term:`type hints <type hint>` and
515516
:term:`annotations <annotation>`.
516517

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

520521
GIL
521522
See :term:`global interpreter lock`.

0 commit comments

Comments
 (0)