Skip to content

Mypy daemon dependency problem with __call__ #8489

@JukkaL

Description

@JukkaL

This fine-grained incremental mode test case fails, probably because of missing dependencies to __call__:

[case testDunderCall]
from a import C

c = C()
c(1)

[file a.py]
class C:
    def __call__(self, x: int) -> None: ...

[file a.py.2]
class C:
    def __call__(self, x: str) -> None: ...

[out]
==                               
main:4: error: Argument 1 to "__call__" of "C" has incompatible type "int"; expected "str"

No error is currently reported when running the test case.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions