Skip to content
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion conformance/tests/typeddicts_extra_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class MovieWithYear2(TypedDict, extra_items=int | None):
year: int | None

details3: MovieWithYear2 = {"name": "Kill Bill Vol. 1", "year": 2003}
movie3: MovieBase2 = details3 # E:'year' is not required in 'Movie', but it is required in 'MovieWithYear2'
movie3: MovieBase2 = details3 # E:'year' is not required in 'MovieBase2', but it is required in 'MovieWithYear2'
Comment thread
JelleZijlstra marked this conversation as resolved.
Outdated

# > When ``extra_items`` is specified to be read-only on a TypedDict type, it is
# > possible for an item to have a :term:`narrower <narrow>` type than the
Expand Down