summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-04-25 16:24:49 (GMT)
committerGitHub <noreply@github.com>2023-04-25 16:24:49 (GMT)
commitcef542ca572fdd402ff0e10093a0c1b459e5dcd6 (patch)
tree4c0e4f5ecafcf29624aab4d68d040ed87e99f16b /Doc
parent32bea69b89e32a8c673db3315e1ea3de48ea7702 (diff)
downloadcpython-cef542ca572fdd402ff0e10093a0c1b459e5dcd6.zip
cpython-cef542ca572fdd402ff0e10093a0c1b459e5dcd6.tar.gz
cpython-cef542ca572fdd402ff0e10093a0c1b459e5dcd6.tar.bz2
gh-103721: Improve cross-references for generic-alias docs (#103838)
Cc. @adriangb The "stub documentation" in `types.rst` does already link to the in-depth docs in `stdtypes.rst`, but the link isn't obvious for new users. It deserves to be made more prominent. - Issue: https://github.com/python/cpython/issues/103721
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/types.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 54887f4..a15fb5c 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -351,6 +351,13 @@ Standard names are defined for the following types:
.. versionchanged:: 3.9.2
This type can now be subclassed.
+ .. seealso::
+
+ :ref:`Generic Alias Types<types-genericalias>`
+ In-depth documentation on instances of :class:`!types.GenericAlias`
+
+ :pep:`585` - Type Hinting Generics In Standard Collections
+ Introducing the :class:`!types.GenericAlias` class
.. class:: UnionType