mirror of https://github.com/python/cpython.git
[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:
parent
93a9535d54
commit
d9aafe2499
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue