-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[1.12 regression] functools.partial
and ParamSpec
#17960
Labels
bug
mypy got something wrong
Comments
sveneberth
added a commit
to sveneberth/viur-toolkit
that referenced
this issue
Oct 15, 2024
`mypy=1.12.0` has changed a bahavior that is currently not wanted (see python/mypy#17960). We should wait for a fix or a "this is the new behavior" statement and stay so on `1.11.X` for now.
sveneberth
added a commit
to viur-framework/viur-toolkit
that referenced
this issue
Oct 15, 2024
`mypy=1.12.0` has changed a bahavior that is currently not wanted (see python/mypy#17960). We should wait for a fix or a "this is the new behavior" statement and stay so on `1.11.X` for now.
functools.partial
functools.partial
and ParamSpec
Yes, the two linked PRs are very relevant: #17355 supports |
carltongibson
added a commit
to django/asgiref
that referenced
this issue
Dec 7, 2024
See issue: python/mypy#17960 Fixed in master: python/mypy#17355 after last release v1.3.0.
andrewgodwin
pushed a commit
to django/asgiref
that referenced
this issue
Dec 8, 2024
See issue: python/mypy#17960 Fixed in master: python/mypy#17355 after last release v1.3.0.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
A function that takes in a function with a broad signature and returns a narrowed partially-applied function now reports
error: Too few arguments [call-arg]
in mypy 1.12.To Reproduce
Live playground link
Expected Behavior
mypy has not reported any issue with this incantation historically, and should still not report on (what, as far as my understanding allows, is) valid code.
Actual Behavior
Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: