Skip to content

Inferring constraints for callable types doesn't verify argument counts and kinds #702

Closed
@JukkaL

Description

@JukkaL

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongfalse-positivemypy gave an error on correct codepriority-1-normaltopic-callsFunction calls, *args, **kwargs, defaults

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions