diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-06 18:50:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 18:50:18 (GMT) |
commit | 643f50ca5e9e12a4d8269ddc8baf2279d8608745 (patch) | |
tree | 32b43037d599b2dfb54f16fb42bdd3f352c19f10 /Doc/glossary.rst | |
parent | a932631890d148444e5f9b09f4b57305475d6386 (diff) | |
download | cpython-643f50ca5e9e12a4d8269ddc8baf2279d8608745.zip cpython-643f50ca5e9e12a4d8269ddc8baf2279d8608745.tar.gz cpython-643f50ca5e9e12a4d8269ddc8baf2279d8608745.tar.bz2 |
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
(cherry picked from commit 77a2c77c84d2ead2d19f96df862c119308e90071)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r-- | Doc/glossary.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 96d33ac..da9dc9c 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -485,12 +485,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`. |