Skip to content

Commit 68e0010

Browse files
committed
conformance: make open TypedDict extra kwargs optional
1 parent 94514b1 commit 68e0010

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎conformance/tests/typeddicts_extra_items.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class MovieExtra(TypedDict, extra_items=int):
140140
def unpack_no_extra(**kwargs: Unpack[MovieNoExtra]) -> None: ...
141141
def unpack_extra(**kwargs: Unpack[MovieExtra]) -> None: ...
142142

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

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

0 commit comments

Comments
 (0)