ParamSpec
: mypy is happy for args to be annotated with P.kwargs
and kwargs to be annotated with P.args
#13460
Labels
Bug Report
Mypy has no issues with this snippet of code. It probably should:
This bug was accidentally discovered in #13459.
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.10&gist=87f5f5277409f0fd77675e8dcc6a11fc
Expected Behavior
Mypy should emit two errors for this snippet:
*args
have been annotated withP.kwargs
instead ofP.args
**kwargs
have been annotated withP.args
instead ofP.kwargs
Actual Behavior
No error is emitted.
The text was updated successfully, but these errors were encountered: