[Python-checkins] bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)

miss-islington webhook-mailer at python.org
Sun Dec 19 09:33:11 EST 2021


https://github.com/python/cpython/commit/9a28cf19b5d5f79eb072afc582f7baa9e7bd3ac2
commit: 9a28cf19b5d5f79eb072afc582f7baa9e7bd3ac2
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-12-19T06:32:49-08:00
summary:

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.
(cherry picked from commit 3d3615f41f4ea73fe6707eb3673dfab482cb6a2b)

Co-authored-by: Rafael Fontenelle <rffontenelle at users.noreply.github.com>

files:
M Doc/whatsnew/3.10.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index c74e9f0ae5cb6..978651f33b206 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
 ==================================
@@ -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.



More information about the Python-checkins mailing list