Skip to content

Daemon issues with retargeting re-exported names #6548

Open
@msullivan

Description

@msullivan

Consider the following test:

[case testRetargetReexport]
from m import M

def f(x: M) -> None: ...

f(M())

[file m.py]
from n import M
[file m.py.2]
from q import M

[file n.py]
class M: ...

[file q.py]
class M: ...
[out]
==

The daemon fails in step two with the error
Argument 1 to "f" has incompatible type "q.M"; expected "n.M"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions