You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inferring constraints for callable types doesn't verify argument counts and kinds #702
The method mypy.constraints.ConstraintBuildervisitor.visit_callable_type is pretty broken. It assumes that there are no *args, **kwargs and that the callable types are generally compatible.
This issue may be already filed, but adding it now so that I won't forget about it.
Activity
ddfisher commentedon Mar 2, 2016
@JukkaL can you clarify with some concrete problems?
JukkaL commentedon May 17, 2018
Here is an example that produces incorrect output (though the example isn't realistic):
The expected output is
Tuple[int, int].More principled approach for callable vs callable inference (#15910)