[Python-checkins] [doc] bpo-45680: Improve glossary entry for generic types (GH-29388)

ambv webhook-mailer at python.org
Sat Nov 6 14:00:57 EDT 2021


https://github.com/python/cpython/commit/77a2c77c84d2ead2d19f96df862c119308e90071
commit: 77a2c77c84d2ead2d19f96df862c119308e90071
branch: main
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-11-06T19:00:45+01:00
summary:

[doc] bpo-45680: Improve glossary entry for generic types (GH-29388)

Co-authored-by: Łukasz Langa <lukasz at langa.pl>

files:
M Doc/glossary.rst

diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 1f14946fa1342..ccbfc0e6c36c7 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`.



More information about the Python-checkins mailing list