diff --git a/tests/functional/p/protocol_classes_abstract.py b/tests/functional/p/protocol_classes_abstract.py index 7b7b89f42d..ad8ec5cf5c 100644 --- a/tests/functional/p/protocol_classes_abstract.py +++ b/tests/functional/p/protocol_classes_abstract.py @@ -27,6 +27,8 @@ def bar(self) -> Literal["bar"]: class FooBarProtocol(FooProtocol, BarProtocol, Protocol): """FooBar Protocol""" +class BarParent(BarProtocol): # [abstract-method] + """Doesn't subclass typing.Protocol directly""" class IndirectProtocol(FooProtocol): # [abstract-method] """Doesn't subclass typing.Protocol directly""" diff --git a/tests/functional/p/protocol_classes_abstract.txt b/tests/functional/p/protocol_classes_abstract.txt index 70e9b16b3c..9b099ceb7f 100644 --- a/tests/functional/p/protocol_classes_abstract.txt +++ b/tests/functional/p/protocol_classes_abstract.txt @@ -1 +1,2 @@ -abstract-method:31:0:31:22:IndirectProtocol:Method 'foo' is abstract in class 'FooProtocol' but is not overridden in child class 'IndirectProtocol':INFERENCE +abstract-method:30:0:30:15:BarParent:Method 'bar' is abstract in class 'BarProtocol' but is not overridden in child class 'BarParent':INFERENCE +abstract-method:33:0:33:22:IndirectProtocol:Method 'foo' is abstract in class 'FooProtocol' but is not overridden in child class 'IndirectProtocol':INFERENCE