]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Thu, 4 Nov 2021 11:48:40 +0000 (11:48 +0000)
committerGitHub <noreply@github.com>
Thu, 4 Nov 2021 11:48:40 +0000 (19:48 +0800)
``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.

Doc/library/typing.rst

index 79ca2e96431a669e45bc6761f6c1e6220406a8fc..c37e97eb3e7305e669ff284b3e94e3b98a7fdf9d 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::