[3.11] gh-103721: Improve cross-references for generic-alias docs (GH-103838) (#103840)

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
(cherry picked from commit cef542ca57)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-04-25 15:58:25 -07:00 committed by GitHub
parent 93a9535d54
commit d9aafe2499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -311,6 +311,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