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 9431d47 commit a56fcacCopy full SHA for a56fcac
test-data/unit/check-classes.test
@@ -7457,3 +7457,23 @@ class Bar(Foo):
7457
@x.setter
7458
def x(self, value: int) -> None: ...
7459
[builtins fixtures/property.pyi]
7460
+
7461
+[case testOverrideMethodProperty]
7462
+class B:
7463
+ def foo(self) -> int:
7464
+ ...
7465
+class C(B):
7466
+ @property
7467
+ def foo(self) -> int: # E: Signature of "foo" incompatible with supertype "B"
7468
7469
+[builtins fixtures/property.pyi]
7470
7471
+[case testOverridePropertyMethod]
7472
7473
7474
7475
7476
7477
7478
7479
0 commit comments