Skip to content

Commit

Permalink
[doc] bpo-45680: Improve glossary entry for generic types (pythonGH-2…
Browse files Browse the repository at this point in the history
…9388)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
  • Loading branch information
AlexWaygood and ambv authored Nov 6, 2021
1 parent 6ecead1 commit 77a2c77
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,13 @@ Glossary
:func:`functools.singledispatch` decorator, and :pep:`443`.

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

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

GIL
See :term:`global interpreter lock`.
Expand Down

0 comments on commit 77a2c77

Please sign in to comment.