]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 4 Nov 2021 12:13:24 +0000 (05:13 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Nov 2021 12:13:24 +0000 (05:13 -0700)
``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.
(cherry picked from commit 87032cfa3dc975d7442fd57dea2c6a56d31c911a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/typing.rst

index 068112d8d9451ed09b1051964d317905b0afc1cf..3b50d76c5a8fe42fbb0d23e500366bed1efafeb3 100644 (file)
 --------------
 
 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::