[Python-checkins] Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)

Fidget-Spinner webhook-mailer at python.org
Thu Nov 4 07:48:48 EDT 2021


https://github.com/python/cpython/commit/87032cfa3dc975d7442fd57dea2c6a56d31c911a
commit: 87032cfa3dc975d7442fd57dea2c6a56d31c911a
branch: main
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: Fidget-Spinner <28750310+Fidget-Spinner at users.noreply.github.com>
date: 2021-11-04T19:48:40+08:00
summary:

Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)

``typing.Tuple`` has been deprecated since Python 3.9, so it makes no sense to mention it so prominently in the documentation for the ``typing`` module.

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 79ca2e96431a6..c37e97eb3e730 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -18,10 +18,9 @@
 --------------
 
 This module provides runtime support for type hints. The most fundamental
-support consists of the types :data:`Any`, :data:`Union`, :data:`Tuple`,
-:data:`Callable`, :class:`TypeVar`, and :class:`Generic`. For a full
-specification, please see :pep:`484`. For a simplified introduction to type
-hints, see :pep:`483`.
+support consists of the types :data:`Any`, :data:`Union`, :data:`Callable`,
+:class:`TypeVar`, and :class:`Generic`. For a full specification, please see
+:pep:`484`. For a simplified introduction to type hints, see :pep:`483`.
 
 
 The function below takes and returns a string and is annotated as follows::



More information about the Python-checkins mailing list