diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-04 12:13:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 12:13:24 (GMT) |
commit | 7e244fc80434584d082c0c7a3d9a92e69aa30061 (patch) | |
tree | 825e4dd5795be1c491f2fc130ec0032e62f7eb79 /Doc/library | |
parent | e813dd4d7bb0ecfabc7dae75e13f58164bcf8da6 (diff) | |
download | cpython-7e244fc80434584d082c0c7a3d9a92e69aa30061.zip cpython-7e244fc80434584d082c0c7a3d9a92e69aa30061.tar.gz cpython-7e244fc80434584d082c0c7a3d9a92e69aa30061.tar.bz2 |
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.
(cherry picked from commit 87032cfa3dc975d7442fd57dea2c6a56d31c911a)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/typing.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 068112d..3b50d76 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:: |