summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMonadChains <monadchains@gmail.com>2022-07-10 18:04:01 (GMT)
committerGitHub <noreply@github.com>2022-07-10 18:04:01 (GMT)
commite8e4b550f50e716c57cc5d0225042ab766c5582d (patch)
treef1bfa0a3eca34c3104290cb6bc66858a109cb547 /Doc
parentef61b259e35a0249840184b59f43d8a7f9b095bc (diff)
downloadcpython-e8e4b550f50e716c57cc5d0225042ab766c5582d.zip
cpython-e8e4b550f50e716c57cc5d0225042ab766c5582d.tar.gz
cpython-e8e4b550f50e716c57cc5d0225042ab766c5582d.tar.bz2
gh-94309: Deprecate typing.Hashable/Sized (GH-94626)
Deprecate typing.Hashable/Sized. Use the collections.abc counterparts directly instead. To be consistent with PEP 585, deprecated aliases will not raise any DeprecationWarning.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/typing.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index fceb43a..3980e45 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -2215,6 +2215,9 @@ Corresponding to other types in :mod:`collections.abc`
An alias to :class:`collections.abc.Hashable`.
+ .. deprecated:: 3.12
+ Use :class:`collections.abc.Hashable` directly instead.
+
.. class:: Reversible(Iterable[T_co])
A generic version of :class:`collections.abc.Reversible`.
@@ -2227,6 +2230,9 @@ Corresponding to other types in :mod:`collections.abc`
An alias to :class:`collections.abc.Sized`.
+ .. deprecated:: 3.12
+ Use :class:`collections.abc.Sized` directly instead.
+
Asynchronous programming
""""""""""""""""""""""""
@@ -2849,3 +2855,6 @@ convenience. This is subject to change, and not all deprecations are listed.
+----------------------------------+---------------+-------------------+----------------+
| ``typing.Text`` | 3.11 | Undecided | :gh:`92332` |
+----------------------------------+---------------+-------------------+----------------+
+| ``typing.Hashable`` and | 3.12 | Undecided | :gh:`94309` |
+| ``typing.Sized`` | | | |
++----------------------------------+---------------+-------------------+----------------+