Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions test-data/unit/check-classes.test
Original file line numberDiff line numberDiff line change
Expand Up@@ -7457,3 +7457,23 @@ class Bar(Foo):
@x.setter
def x(self, value: int) -> None: ...
[builtins fixtures/property.pyi]

[case testOverrideMethodProperty]
class B:
def foo(self) -> int:
...
class C(B):
@property
def foo(self) -> int: # E: Signature of "foo" incompatible with supertype "B"
...
[builtins fixtures/property.pyi]

[case testOverridePropertyMethod]
class B:
@property
def foo(self) -> int:
...
class C(B):
def foo(self) -> int: # E: Signature of "foo" incompatible with supertype "B"
...
[builtins fixtures/property.pyi]