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 63e5a5b commit a820f7fCopy full SHA for a820f7f
Lib/test/test_typing.py
@@ -4557,6 +4557,7 @@ class Commentable(Protocol):
4557
def test_isinstance_with_deferred_evaluation_of_annotations(self):
4558
@runtime_checkable
4559
class P(Protocol):
4560
+ x: int
4561
def meth(self):
4562
...
4563
@@ -4572,6 +4573,7 @@ def __init__(self):
4572
4573
4574
4575
4576
+ # override meth with a non-method attribute to make it part of __annotations__ instead of __dict__
4577
class SubProtocol(P, Protocol):
4578
meth: undefined
4579
0 commit comments