We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316741e commit 3d13c56Copy full SHA for 3d13c56
Lib/test/test_typing.py
@@ -4577,9 +4577,9 @@ class SubProtocol(P, Protocol):
4577
meth: undefined
4578
4579
4580
- self.assertTrue(issubclass(SubProtocol, P))
4581
- self.assertFalse(isinstance(DeferredClass(), P))
4582
- self.assertTrue(isinstance(DeferredClassImplementingP(), P))
+ self.assertIsSubclass(SubProtocol, P)
+ self.assertNotIsInstance(DeferredClass(), P)
+ self.assertIsInstance(DeferredClassImplementingP(), P)
4583
4584
def test_deferred_evaluation_of_annotations(self):
4585
class DeferredProto(Protocol):
0 commit comments