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
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: