-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad error message for arguments between ParamSpec P.args and P.kwargs #13966
Comments
With
Mypy's error message in this case should probably be improved to indicate as such. If you move the parameters |
mypy 0.990 will have a less atrocious error message here (but definitely could still be made more helpful) |
Don't think there's a test case corresponding to the issue in python#13966
Don't think there's a test case corresponding to the issue in #13966
Yeah, the error message is still not very good:
|
Bug Report
ParamSpec
P.args
andP.kwargs
are not defined when using explicit keyword argument.To Reproduce
This code would be used to type anyio.run().
Link to mypy-play
but it works without explicit keyword arguments.
Expected Behavior
It should be able to type and recognize that
run()
passes the rest of the arguments to the functiona()
.Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: