summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2021-05-12-16-43-21.bpo-38908.nM2_rO.rst
blob: 18e3dd4066c4af40c72b46632c8cca2bba6b68d6 (plain)
1
2
3
4
5
Subclasses of ``typing.Protocol`` which only have data variables declared
will now raise a ``TypeError`` when checked with ``isinstance`` unless they
are decorated with :func:`runtime_checkable`.  Previously, these checks
passed silently.
Patch provided by Yurii Karabas.