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.
|