Skip to content

Commit a583cce

Browse files
committed
Add news entry
1 parent 985e267 commit a583cce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
It is deprecated to call :func:`isinstance` and :func:`issubclass` checks on
2+
:class:`typing.Protocol` classes that were not explicitly decorated
3+
with :func:`typing.runtime_checkable` after subclassing runtime-checkable
4+
protocol classes. This will throw a :exc:`TypeError` in Python 3.20.
5+
Contributed by Bartosz Sławecki.

0 commit comments

Comments
 (0)