Skip to content

Commit f1a4650

Browse files
try tuple simple
1 parent 471973b commit f1a4650

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test-data/unit/check-flags.test

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,14 +2481,13 @@ class Parent:
24812481
return True
24822482

24832483
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"
24852485
pass
24862486

24872487
@override
24882488
def g(self, y: int) -> bool: #type: ignore # E: Unused "type: ignore" comment # E: "type: ignore" comment without error code
24892489
return True
2490-
[builtins fixtures/primitives.pyi]
2491-
[typing fixtures/typing-full.pyi]
2490+
[builtins fixtures/tuple-simple.pyi]
24922491

24932492
[case testSpotCheckErrorCodeAllNotUsed]
24942493
# This test case exists purely to ensure that the testSpotCheckErrorCodeAll test does not become obsolete.
@@ -2511,5 +2510,4 @@ class Child(Parent):
25112510
@override
25122511
def g(self, y: int) -> bool: #type: ignore
25132512
return True
2514-
[builtins fixtures/primitives.pyi]
2515-
[typing fixtures/typing-full.pyi]
2513+
[builtins fixtures/tuple-simple.pyi]

0 commit comments

Comments
 (0)