You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
testit.py:10: error: Argument 1 to "setdefault" of "TypedDict" has incompatible type "str"; expected "Never" [arg-type]
Found 1 error in 1 file (checked 1 source file)
Your Environment
Mypy version used: mypy 1.11.1 (compiled: yes)
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): no config file
Python version used: 3.12.3
The text was updated successfully, but these errors were encountered:
Bug Report
When a function argument is annotated using a TypeVar with a bound that is a TypedDict, using
setdefault
on it leads to an error.To Reproduce
Actual Behavior
Your Environment
mypy.ini
(and other config files): no config fileThe text was updated successfully, but these errors were encountered: