We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a95d8 commit cd288d4Copy full SHA for cd288d4
conformance/tests/typeddicts_extra_items.py
@@ -122,7 +122,7 @@ class MovieEI(TypedDict, extra_items=int):
122
name: str
123
124
def del_items(movie: MovieEI) -> None:
125
- del movie["name"] # E: The value type of 'name' is 'Required[int]'
+ del movie["name"] # E: The value type of 'name' is 'Required[str]'
126
del movie["year"] # OK: The value type of 'year' is 'NotRequired[int]'
127
128
# > For type checking purposes, ``Unpack[SomeTypedDict]`` with extra items should be
0 commit comments