]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Dec 2021 14:32:49 +0000 (06:32 -0800)
committerGitHub <noreply@github.com>
Sun, 19 Dec 2021 14:32:49 +0000 (06:32 -0800)
This allows the title to be translated to other languages without linking problems.
(cherry picked from commit 3d3615f41f4ea73fe6707eb3673dfab482cb6a2b)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Doc/whatsnew/3.10.rst

index c74e9f0ae5cb6049df60591c64dc87bde8ed4bf3..978651f33b20611ed3dadf8c9c1e66ea30957bc6 100644 (file)
@@ -704,6 +704,7 @@ are added to enable the warning.
 
 See :ref:`io-text-encoding` for more information.
 
+.. _new-feat-related-type-hints:
 
 New Features Related to Type Hints
 ==================================
@@ -1418,7 +1419,7 @@ of types readily interpretable by type checkers.
 typing
 ------
 
-For major changes, see `New Features Related to Type Hints`_.
+For major changes, see :ref:`new-feat-related-type-hints`.
 
 The behavior of :class:`typing.Literal` was changed to conform with :pep:`586`
 and to match the behavior of static type checkers specified in the PEP.