mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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 87032cfa3d)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
e813dd4d7b
commit
7e244fc804
1 changed files with 3 additions and 4 deletions
|
|
@ -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::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue