]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29447)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Nov 2021 18:21:36 +0000 (11:21 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Nov 2021 18:21:36 +0000 (19:21 +0100)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
(cherry picked from commit 77a2c77c84d2ead2d19f96df862c119308e90071)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/glossary.rst

index 652f8d919607fe938444ef627a045f196c3be583..40b57bd41e8c66d4019f0bb3fa7b959912e35fa5 100644 (file)
@@ -520,12 +520,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`.