summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle <rffontenelle@users.noreply.github.com>2021-12-19 14:06:35 (GMT)
committerGitHub <noreply@github.com>2021-12-19 14:06:35 (GMT)
commit3d3615f41f4ea73fe6707eb3673dfab482cb6a2b (patch)
tree487eac22f05c029083edbe98903dbe1d3497f4d1
parentda4b214304df38cf1831071804a2b83938f95923 (diff)
downloadcpython-3d3615f41f4ea73fe6707eb3673dfab482cb6a2b.zip
cpython-3d3615f41f4ea73fe6707eb3673dfab482cb6a2b.tar.gz
cpython-3d3615f41f4ea73fe6707eb3673dfab482cb6a2b.tar.bz2
bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)
This allows the title to be translated to other languages without linking problems.
-rw-r--r--Doc/whatsnew/3.10.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 1185639..b56663f 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -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
==================================
@@ -1429,7 +1430,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.