Skip to content

Commit e5248b6

Browse files
authored
Apply suggestions from code review
1 parent 887a5e2 commit e5248b6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎Doc/deprecations/pending-removal-in-3.18.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Pending removal in Python 3.18
1414
* :mod:`typing`:
1515

1616
* :data:`typing.AnyStr` has been discouraged
17-
and deprecated since Python 3.16.
17+
and deprecated since Python 3.16
18+
and is scheduled to be removed in Python 3.21.
1819
Use :pep:`695` syntax instead.
1920

2021
* Deprecations defined by :pep:`829`:

‎Lib/typing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,7 @@ def __subclasscheck__(self, cls):
39543954
"in Python {remove}. Use PEP-695 type parameters "
39553955
"with constraints instead"
39563956
),
3957-
remove=(3, 18),
3957+
remove=(3, 21),
39583958
)
39593959
AnyStr = globals()["AnyStr"] = TypeVar('AnyStr', bytes, str)
39603960
return AnyStr

0 commit comments

Comments
 (0)