Skip to content

Commit d9aafe2

Browse files
[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: #103721 (cherry picked from commit cef542c) Co-authored-by: Alex Waygood <[email protected]>
1 parent 93a9535 commit d9aafe2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,13 @@ Standard names are defined for the following types:
311311
.. versionchanged:: 3.9.2
312312
This type can now be subclassed.
313313

314+
.. seealso::
315+
316+
:ref:`Generic Alias Types<types-genericalias>`
317+
In-depth documentation on instances of :class:`!types.GenericAlias`
318+
319+
:pep:`585` - Type Hinting Generics In Standard Collections
320+
Introducing the :class:`!types.GenericAlias` class
314321

315322
.. class:: UnionType
316323

0 commit comments

Comments
 (0)