Skip to content

Commit 735dba9

Browse files
conformance: make open TypedDict extra kwargs optional (#2301)
1 parent 94514b1 commit 735dba9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

conformance/results/ty/typeddicts_extra_items.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Line 49: Expected 1 errors
55
Line 67: Expected 1 errors
66
Line 73: Expected 1 errors
77
Line 109: Expected 1 errors
8-
Line 143: Expected 1 errors
98
Line 174: Expected 1 errors
109
Line 215: Expected 1 errors
1110
Line 222: Expected 1 errors

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)