Skip to content

Commit adfaf3d

Browse files
committed
Fix removal date
1 parent 3e321d4 commit adfaf3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/library/typing.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,15 +894,15 @@ using ``[]``.
894894
def greet_proper(cond: bool) -> str | bytes:
895895
return "hi there!" if cond else b"greetings!"
896896

897-
.. deprecated-removed:: 3.13 3.18
897+
.. deprecated-removed:: 3.13 3.21
898898
Deprecated in favor of the new :ref:`type parameter syntax <type-params>`.
899899
Use ``class A[T: (str, bytes)]: ...`` instead of importing ``AnyStr``. See
900900
:pep:`695` for more details.
901901

902902
Since Python 3.16, ``AnyStr`` is removed from ``typing.__all__``, and
903903
deprecation warnings are emitted at runtime when it is accessed or
904904
imported from ``typing``. ``AnyStr`` will be removed from ``typing``
905-
in Python 3.18.
905+
in Python 3.21.
906906

907907
.. data:: LiteralString
908908

0 commit comments

Comments
 (0)