Skip to content

Commit f10413b

Browse files
update test, that the change applies to, that had made it in since I originally updated the tests
While I was in here, I changed some line continuation formatting back to approximately its original way to minimize the git diff
1 parent c6a99a8 commit f10413b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

test-data/unit/check-errorcodes.test

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def y() -> int: return 2
493493
def 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
497497
def z() -> int: return 4
498498

499499
[case testErrorCodeIndexing]
@@ -1128,11 +1128,13 @@ class D(TypedDict):
11281128
x: int
11291129

11301130
def 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

Comments
 (0)