Skip to content

Commit

Permalink
pythongh-94309: "What's new in Python 3.12": improve deprecation noti…
Browse files Browse the repository at this point in the history
…ce for typing.Hashable and typing.Sized (python#112196)
  • Loading branch information
salty-horse authored and aisk committed Feb 11, 2024
1 parent d132795 commit 74261c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 74261c7

Please sign in to comment.