We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IgnotErrorCodeTypedDictNoteIgnore
1 parent 25f3dbc commit c7c687fCopy full SHA for c7c687f
test-data/unit/check-errorcodes.test
@@ -476,7 +476,10 @@ class A(TypedDict):
476
two_commonparts: int
477
478
a: A = {'one_commonpart': 1, 'two_commonparts': 2}
479
-a['other_commonpart'] = 3 # type: ignore[typeddict-unknown-key,typeddict-item]
+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]
483
[builtins fixtures/dict.pyi]
484
[typing fixtures/typing-typeddict.pyi]
485
0 commit comments