File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2530,7 +2530,7 @@ types.
25302530 .. deprecated-removed :: 3.15 3.20
25312531 It is deprecated to call :func: `isinstance ` and :func: `issubclass ` checks on
25322532 protocol classes that were not explicitly decorated with :func: `!runtime_checkable `
2533- after subclassing runtime-checkable protocol classes . This will throw
2533+ but that inherit from a runtime-checkable protocol class . This will throw
25342534 a :exc: `TypeError ` in Python 3.20.
25352535
25362536.. decorator :: runtime_checkable
@@ -2609,7 +2609,7 @@ types.
26092609 .. deprecated-removed :: 3.15 3.20
26102610 It is deprecated to call :func: `isinstance ` and :func: `issubclass ` checks on
26112611 protocol classes that were not explicitly decorated with :func: `!runtime_checkable `
2612- after subclassing runtime-checkable protocol classes . This will throw
2612+ but that inherit from a runtime-checkable protocol class . This will throw
26132613 a :exc: `TypeError ` in Python 3.20.
26142614
26152615.. class :: TypedDict(dict)
Original file line number Diff line number Diff line change @@ -2022,7 +2022,7 @@ def __subclasscheck__(cls, other):
20222022 f"{ cls !r} isn't explicitly decorated with @runtime_checkable but "
20232023 "it is used in issubclass() or isinstance(). Instance and class "
20242024 "checks can only be used with @runtime_checkable protocols. "
2025- "This may stop working in Python 3.20."
2025+ "This will raise a TypeError in Python 3.20."
20262026 )
20272027 warnings .warn (depr_message , category = DeprecationWarning , stacklevel = 2 )
20282028 if (
@@ -2062,7 +2062,7 @@ def __instancecheck__(cls, instance):
20622062 f"{ cls !r} isn't explicitly decorated with @runtime_checkable but "
20632063 "it is used in issubclass() or isinstance(). Instance and class "
20642064 "checks can only be used with @runtime_checkable protocols. "
2065- "This may stop working in Python 3.20."
2065+ "This will raise a TypeError in Python 3.20."
20662066 )
20672067 warnings .warn (depr_message , category = DeprecationWarning , stacklevel = 2 )
20682068
You can’t perform that action at this time.
0 commit comments