-
-
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
type not inferred in application of higher-order function to a generic function #1507
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-type-variables
Comments
This is working now. So I feel like this issue should be closed. See https://mypy-play.net/?mypy=latest&python=3.12&gist=2265ae341b2994f28577afc8788c0879 |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-type-variables
The call to
apply
should type check, with both typesS
and the type ofy
beingint
.I encountered this sort of situation in
mypy/codec/pytokenize.py
in the lines#1471 was an attempt to fix this, but since it fixes this case but not #1506, I'm filing these as two related but distinct issues.
The text was updated successfully, but these errors were encountered: