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 8c7a1e9 commit 63e5a5bCopy full SHA for 63e5a5b
Lib/test/test_typing.py
@@ -4557,7 +4557,6 @@ class Commentable(Protocol):
4557
def test_isinstance_with_deferred_evaluation_of_annotations(self):
4558
@runtime_checkable
4559
class P(Protocol):
4560
- x: undefined | int
4561
def meth(self):
4562
...
4563
@@ -4573,6 +4572,11 @@ def __init__(self):
4573
4572
4574
4575
+ class SubProtocol(P, Protocol):
4576
+ meth: undefined
4577
+
4578
4579
+ self.assertTrue(issubclass(SubProtocol, P))
4580
self.assertFalse(isinstance(DeferredClass(), P))
4581
self.assertTrue(isinstance(DeferredClassImplementingP(), P))
4582
0 commit comments