]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sat, 6 Nov 2021 18:00:45 +0000 (18:00 +0000)
committerGitHub <noreply@github.com>
Sat, 6 Nov 2021 18:00:45 +0000 (19:00 +0100)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Doc/glossary.rst

index 1f14946fa134271fcdcb5451a5710934458cf0f7..ccbfc0e6c36c7d2be70dfcba65065d66ffb6cad2 100644 (file)
@@ -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`.