@@ -113,27 +113,27 @@ b = 'x'.foobar(b) # type: int # type: ignore[name-defined, xyz] # E: "str" has
113113
114114[case testErrorCodeWarnUnusedIgnores1]
115115# flags: --warn-unused-ignores
116- x # type: ignore[name-defined, attr-defined] # E: unused "type: ignore[attr-defined]" comment
116+ x # type: ignore[name-defined, attr-defined] # E: Unused "type: ignore[attr-defined]" comment
117117
118118[case testErrorCodeWarnUnusedIgnores2]
119119# flags: --warn-unused-ignores
120120"x".foobar(y) # type: ignore[name-defined, attr-defined]
121121
122122[case testErrorCodeWarnUnusedIgnores3]
123123# flags: --warn-unused-ignores
124- "x".foobar(y) # type: ignore[name-defined, attr-defined, xyz] # E: unused "type: ignore[xyz]" comment
124+ "x".foobar(y) # type: ignore[name-defined, attr-defined, xyz] # E: Unused "type: ignore[xyz]" comment
125125
126126[case testErrorCodeWarnUnusedIgnores4]
127127# flags: --warn-unused-ignores
128- "x".foobar(y) # type: ignore[name-defined, attr-defined, valid-type] # E: unused "type: ignore[valid-type]" comment
128+ "x".foobar(y) # type: ignore[name-defined, attr-defined, valid-type] # E: Unused "type: ignore[valid-type]" comment
129129
130130[case testErrorCodeWarnUnusedIgnores5]
131131# flags: --warn-unused-ignores
132- "x".foobar(y) # type: ignore[name-defined, attr-defined, valid-type, xyz] # E: unused "type: ignore[valid-type, xyz]" comment
132+ "x".foobar(y) # type: ignore[name-defined, attr-defined, valid-type, xyz] # E: Unused "type: ignore[valid-type, xyz]" comment
133133
134134[case testErrorCodeWarnUnusedIgnores6_NoDetailWhenSingleErrorCode]
135135# flags: --warn-unused-ignores
136- "x" # type: ignore[name-defined] # E: unused "type: ignore" comment
136+ "x" # type: ignore[name-defined] # E: Unused "type: ignore" comment
137137
138138[case testErrorCodeIgnoreWithExtraSpace]
139139x # type: ignore [name-defined]
0 commit comments