Skip to content
Prev Previous commit
Next Next commit
Add reference to type-params section
  • Loading branch information
michael-the1 committed Jul 30, 2023
commit c9df1220c100913b1d5ba8bc33c162b0431b2992
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,8 @@ using ``[]``.
.. data:: AnyStr

.. deprecated-removed:: 3.13 3.18
Deprecated in favor of the new type parameter syntax. Use
``class A[T: (str, bytes)]: ...`` instead of importing ``AnyStr``. See
Deprecated in favor of the new :ref:`type parameter syntax <type-params>`.
Use ``class A[T: (str, bytes)]: ...`` instead of importing ``AnyStr``. See
:pep:`695` for more details.
Comment thread
michael-the1 marked this conversation as resolved.
Outdated

In Python 3.16, ``AnyStr`` will be removed from ``typing.__all__``, and
Expand Down
5 changes: 3 additions & 2 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ Deprecated

* :data:`typing.AnyStr` is deprecated. In Python 3.16, it will be removed from
``typing.__all__``, and a :exc:`DeprecationWarning` will be emitted when it
is imported or accessed. It will be removed entirely in Python 3.18.
is imported or accessed. It will be removed entirely in Python 3.18. Use
the new :ref:`type parameter syntax <type-params>` instead.
(Contributed by Michael The in :gh:`107116`.)
Comment thread
michael-the1 marked this conversation as resolved.

* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
Expand Down Expand Up @@ -340,7 +341,7 @@ Pending Removal in Python 3.16
Pending Removal in Python 3.18
------------------------------

* :class:`typing.AnyStr`: Use the new type parameter syntax instead. See :pep:`695`. (:gh:`105578`)
* :class:`typing.AnyStr`: Use the new :ref:`type parameter syntax <type-params>` instead. See :pep:`695`. (:gh:`105578`)

Pending Removal in Future Versions
----------------------------------
Expand Down