File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ class E(TypedDict):
455455 y: int
456456
457457a: D = {'x': ''} # E: Incompatible types (expression has type "str", TypedDict item "x" has type "int") [typeddict-item]
458- b: D = {'y': ''} # E: Extra key "y" for TypedDict "D" [typeddict-item]
458+ b: D = {'y': ''} # E: Missing key "x" for TypedDict "D" [typeddict-item] # E: Extra key "y" for TypedDict "D" [typeddict-unknown -item]
459459c = D(x=0) if int() else E(x=0, y=0)
460460c = {} # E: Expected TypedDict key "x" but found no keys [typeddict-item]
461461
Original file line number Diff line number Diff line change @@ -2020,7 +2020,7 @@ v = {union: 2} # E: Expected TypedDict key to be string literal
20202020num2: Literal['num']
20212021v = {num2: 2}
20222022bad2: Literal['bad']
2023- v = {bad2: 2} # E: Extra key "bad" for TypedDict "Value"
2023+ v = {bad2: 2} # E: Missing key "num" for TypedDict "Value" # E: Extra key "bad" for TypedDict "Value"
20242024
20252025[builtins fixtures/dict.pyi]
20262026[typing fixtures/typing-typeddict.pyi]
You canβt perform that action at this time.
0 commit comments