Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion conformance/results/ty/typeddicts_extra_items.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Line 49: Expected 1 errors
Line 67: Expected 1 errors
Line 73: Expected 1 errors
Line 109: Expected 1 errors
Line 143: Expected 1 errors
Line 174: Expected 1 errors
Line 215: Expected 1 errors
Line 222: Expected 1 errors
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/typeddicts_extra_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class MovieExtra(TypedDict, extra_items=int):
def unpack_no_extra(**kwargs: Unpack[MovieNoExtra]) -> None: ...
def unpack_extra(**kwargs: Unpack[MovieExtra]) -> None: ...

unpack_no_extra(name="No Country for Old Men", year=2007) # E: Unrecognized item
unpack_no_extra(name="No Country for Old Men", year=2007) # E?: Unrecognized item
unpack_extra(name="No Country for Old Men", year=2007) # OK

# > Notably, if the TypedDict type specifies ``extra_items`` to be read-only,
Expand Down