Skip to content

Commit 21b0785

Browse files
Fix incorrect type name in TypedDict extra_items assignment test (#2184)
* Fix incorrect type name in TypedDict extra_items assignment test * Apply suggestion from @JelleZijlstra --------- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 4cd52c1 commit 21b0785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conformance/tests/typeddicts_extra_items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class MovieWithYear2(TypedDict, extra_items=int | None):
219219
year: int | None
220220

221221
details3: MovieWithYear2 = {"name": "Kill Bill Vol. 1", "year": 2003}
222-
movie3: MovieBase2 = details3 # E:'year' is not required in 'Movie', but it is required in 'MovieWithYear2'
222+
movie3: MovieBase2 = details3 # E: 'year' is not required in 'MovieBase2', but it is required in 'MovieWithYear2'
223223

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

0 commit comments

Comments
 (0)