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

Skip to content
5 changes: 5 additions & 0 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,11 @@ using ``[]``.

.. data:: AnyStr

.. deprecated:: 3.13
Comment thread
michael-the1 marked this conversation as resolved.
Outdated
Deprecated in favor of the new type parameter syntax. 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
Comment thread
michael-the1 marked this conversation as resolved.
Outdated

A :ref:`constrained type variable <typing-constrained-typevar>`.

Definition::
Expand Down