Skip to content

Commit c7c687f

Browse files
🧑‍🔬 Redid the IgnotErrorCodeTypedDictNoteIgnore test
1 parent 25f3dbc commit c7c687f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test-data/unit/check-errorcodes.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,10 @@ class A(TypedDict):
476476
two_commonparts: int
477477

478478
a: A = {'one_commonpart': 1, 'two_commonparts': 2}
479-
a['other_commonpart'] = 3 # type: ignore[typeddict-unknown-key,typeddict-item]
479+
a['other_commonpart'] = 3 # type: ignore[typeddict-unknown-key] \
480+
# N: Did you mean "one_commonpart" or "two_commonparts"? \
481+
# N: Error code "typeddict-item" not covered by "type: ignore" comment
482+
not_exist = a['not_exist'] # type: ignore[typeddict-item]
480483
[builtins fixtures/dict.pyi]
481484
[typing fixtures/typing-typeddict.pyi]
482485

0 commit comments

Comments
 (0)