File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2481,14 +2481,13 @@ class Parent:
2481
2481
return True
2482
2482
2483
2483
class Child(Parent):
2484
- def f(self, x: int) -> None: # E: Missing @override decorator
2484
+ def f(self, x: int) -> None: # E: Method "f" is not using @override but is overriding a method in class "__main__.Parent"
2485
2485
pass
2486
2486
2487
2487
@override
2488
2488
def g(self, y: int) -> bool: #type: ignore # E: Unused "type: ignore" comment # E: "type: ignore" comment without error code
2489
2489
return True
2490
- [builtins fixtures/primitives.pyi]
2491
- [typing fixtures/typing-full.pyi]
2490
+ [builtins fixtures/tuple-simple.pyi]
2492
2491
2493
2492
[case testSpotCheckErrorCodeAllNotUsed]
2494
2493
# This test case exists purely to ensure that the testSpotCheckErrorCodeAll test does not become obsolete.
@@ -2511,5 +2510,4 @@ class Child(Parent):
2511
2510
@override
2512
2511
def g(self, y: int) -> bool: #type: ignore
2513
2512
return True
2514
- [builtins fixtures/primitives.pyi]
2515
- [typing fixtures/typing-full.pyi]
2513
+ [builtins fixtures/tuple-simple.pyi]
You can’t perform that action at this time.
0 commit comments