From 9d90d880eefec9872e051761650f0c3e4d55aadc Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Tue, 25 Apr 2023 09:57:33 -0600 Subject: [PATCH 1/2] gh-103721: Improve cross-references for generic-alias docs --- Doc/library/types.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 54887f4c51983a..d3f7477ceeed1c 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -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` + In-depth documentation on instances of `types.GenericAlias` + + :pep:`585` - Type Hinting Generics In Standard Collections + Introducing the `types.GenericAlias` class .. class:: UnionType From 5b81c4f8f13f7c07ac37618821588ddc5db57089 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 25 Apr 2023 10:01:58 -0600 Subject: [PATCH 2/2] this isn't markdown --- Doc/library/types.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/types.rst b/Doc/library/types.rst index d3f7477ceeed1c..a15fb5cfa49473 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -354,10 +354,10 @@ Standard names are defined for the following types: .. seealso:: :ref:`Generic Alias Types` - In-depth documentation on instances of `types.GenericAlias` + In-depth documentation on instances of :class:`!types.GenericAlias` :pep:`585` - Type Hinting Generics In Standard Collections - Introducing the `types.GenericAlias` class + Introducing the :class:`!types.GenericAlias` class .. class:: UnionType