@@ -493,7 +493,7 @@ def y() -> int: return 2
493493def best() -> int: return 3
494494@d # type: ignore[misc] # E: Unused "type: ignore" comment [unused-ignore] \
495495 # E: Untyped decorator makes function "z" untyped [untyped-decorator] \
496- # N: Error code "untyped-decorator" not covered by "type: ignore" comment
496+ # N: Error code "untyped-decorator" not covered by "type: ignore[misc] " comment
497497def z() -> int: return 4
498498
499499[case testErrorCodeIndexing]
@@ -1128,11 +1128,13 @@ class D(TypedDict):
11281128 x: int
11291129
11301130def f(d: D, s: str) -> None:
1131- d[s] # type: ignore[xyz] # E: TypedDict key must be a string literal; expected one of ("x") [literal-required] \
1132- # N: Error code "literal-required" not covered by "type: ignore[xyz]" comment
1131+ d[s] # type: ignore[xyz] \
1132+ # E: TypedDict key must be a string literal; expected one of ("x") [literal-required] \
1133+ # N: Error code "literal-required" not covered by "type: ignore[xyz]" comment
11331134 d[s] # E: TypedDict key must be a string literal; expected one of ("x") [literal-required]
1134- d[s] # type: ignore[misc] # E: TypedDict key must be a string literal; expected one of ("x") [literal-required] \
1135- # N: Error code changed to literal-required; "type: ignore" comment may be out of date
1135+ d[s] # type: ignore[misc] \
1136+ # E: TypedDict key must be a string literal; expected one of ("x") [literal-required] \
1137+ # N: Error code changed to literal-required; "type: ignore" comment may be out of date
11361138 d[s] # type: ignore[literal-required]
11371139[builtins fixtures/dict.pyi]
11381140[typing fixtures/typing-typeddict.pyi]
0 commit comments