Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Add deprecation of AnyStr to What's New
  • Loading branch information
michael-the1 committed Jul 23, 2023
commit d0b90d263547511b8cf6dcc95882f4f5997960fe
10 changes: 10 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ Deprecated
has yet to be supported by any major type checkers.
(Contributed by Alex Waygood in :gh:`106309`.)

* :class:`typing.AnyStr` is deprecated in docs since Python 3.13. The intention
is to remove `AnyStr` from `__all__` and emit a :exc:`DeprecationWarning`
in Python 3.16, and to remove `AnyStr` entirely in Python 3.18.
(Contributed by Michael The in :gh:`107116`.)
Comment thread
michael-the1 marked this conversation as resolved.

* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
methods of the :class:`wave.Wave_read` and :class:`wave.Wave_write` classes.
They will be removed in Python 3.15.
Expand Down Expand Up @@ -332,6 +337,11 @@ Pending Removal in Python 3.16
* :class:`array.array` ``'u'`` type (:c:type:`wchar_t`):
use the ``'w'`` type instead (``Py_UCS4``).

Pending Removal in Python 3.18
------------------------------

* :class:`typing.AnyStr` (:gh:`105578`)

Pending Removal in Future Versions
----------------------------------

Expand Down