TypedDict
silently accepts experimental PEP 728 arguments but ignores them
#9928
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
For completely unknown
TypedDict
kwargs, pyright correctly shows an error:However, it does not complain about
closed
andextra_items
, even ifenableExperimentalFeatures
is not enabled.(the assignment is disallowed when
enableExperimentalFeatures
is on)It makes it seem like these flags are supported, but they are silently ignored. I expected an error message like
Pyright version: 1.1.394
Python version: 3.12
The text was updated successfully, but these errors were encountered: