From d9aafe249994bc142927a9d92242613ae9d42d13 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 25 Apr 2023 15:58:25 -0700 Subject: [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 cef542ca572fdd402ff0e10093a0c1b459e5dcd6) Co-authored-by: Alex Waygood --- Doc/library/types.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/types.rst b/Doc/library/types.rst index daca0ea..89d3015 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -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` + 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 -- cgit v0.12