From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 17 Nov 2023 12:37:12 +0000 (+0100) Subject: [3.12] gh-94309: "What's new in Python 3.12": improve deprecation notice for typing... X-Git-Tag: v3.12.1~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=976488ebf654c837e63aa7d3077878c2c50c0c44;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-94309: "What's new in Python 3.12": improve deprecation notice for typing.Hashable and typing.Sized (GH-112196) (#112200) 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 --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index feed5238bfab..a046a8d95564 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -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.