Inferring constraints for callable types doesn't verify argument counts and kinds #702
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-calls
Function calls, *args, **kwargs, defaults
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.
The text was updated successfully, but these errors were encountered: