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
This commit is contained in:
Alex Waygood 2023-04-25 10:24:49 -06:00 committed by GitHub
parent 32bea69b89
commit cef542ca57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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