]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-94309: "What's new in Python 3.12": improve deprecation notice for typing...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Nov 2023 12:37:12 +0000 (13:37 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2023 12:37:12 +0000 (12:37 +0000)
gh-94309: "What's new in Python 3.12": improve deprecation notice for typing.Hashable and typing.Sized (GH-112196)
(cherry picked from commit fb4cddb0cc6c9b94929f846da8e95aeec3849212)

Co-authored-by: Ori Avtalion <ori@avtalion.name>
Doc/whatsnew/3.12.rst

index feed5238bfab2653d072e6c8c0a015797c03ff11..a046a8d95564b24cabc24ce504bbed8ec092ca84 100644 (file)
@@ -1289,8 +1289,9 @@ Deprecated
 
 * :mod:`typing`:
 
-  * :class:`typing.Hashable` and :class:`typing.Sized` aliases for :class:`collections.abc.Hashable`
-    and :class:`collections.abc.Sized`. (:gh:`94309`.)
+  * :class:`typing.Hashable` and :class:`typing.Sized`, aliases for
+    :class:`collections.abc.Hashable` and :class:`collections.abc.Sized` respectively, are
+    deprecated. (:gh:`94309`.)
 
   * :class:`typing.ByteString`, deprecated since Python 3.9, now causes a
     :exc:`DeprecationWarning` to be emitted when it is used.