Skip to content

Commit

Permalink
add one more test case
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Nov 30, 2022
1 parent a74c8bf commit a7b119d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/functional/p/protocol_classes_abstract.py
Expand Up @@ -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"""
Expand Down
3 changes: 2 additions & 1 deletion 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

0 comments on commit a7b119d

Please sign in to comment.