diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2021-11-06 18:00:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 18:00:45 (GMT) |
commit | 77a2c77c84d2ead2d19f96df862c119308e90071 (patch) | |
tree | 82984b04fb974151caa3142b99641d04b46f5657 | |
parent | 6ecead106ad886f423abf4f547a1a54d14e32305 (diff) | |
download | cpython-77a2c77c84d2ead2d19f96df862c119308e90071.zip cpython-77a2c77c84d2ead2d19f96df862c119308e90071.tar.gz cpython-77a2c77c84d2ead2d19f96df862c119308e90071.tar.bz2 |
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
-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 1f14946..ccbfc0e 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -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`. |