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
Mypy doesn't currently have full support for ParamSpec (see this tracking issue), but once that support is added, this should address the issue you've reported. I confirmed that it works with pyright.
Closing, since the change to typeshed is being tracked in typeshed (any blocking mypy issues should be tracked in a more specific issue than this one).
To Reproduce
Run mypy on this code and then run the code
The output of the program is:
so type information is available.
Expected Behavior
The lines
factorial("")
and
identity("")
should be both flagged as wrong because the function is called with an incompatible type
Actual Behavior
An error is issued for
identity("")
but not for
factorial("")
As a side note, mypy issues an error
but this is another issue.
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: