diff options
author | 2020-10-28 05:37:18 +0800 | |
---|---|---|
committer | 2020-10-27 14:37:18 -0700 | |
commit | 4173320920706b49a004bdddd8d7108e8984e3fc (patch) | |
tree | e7c3b37468cd6d3daf31933192ed2fdfa449b263 /Doc/glossary.rst | |
parent | bpo-42161: Micro-optimize _collections._count_elements() (GH-23008) (diff) | |
download | cpython-4173320920706b49a004bdddd8d7108e8984e3fc.tar.gz cpython-4173320920706b49a004bdddd8d7108e8984e3fc.tar.bz2 cpython-4173320920706b49a004bdddd8d7108e8984e3fc.zip |
bpo-41805: Documentation for PEP 585 (GH-22615)
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r-- | Doc/glossary.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 847500e5560..4fd01e0160c 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -483,6 +483,13 @@ Glossary See also the :term:`single dispatch` glossary entry, the :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 + :term:`annotations <annotation>`. + + See :pep:`483` for more details, and :mod:`typing` or + :ref:`generic alias type <types-genericalias>` for its uses. GIL See :term:`global interpreter lock`. |