Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(馃悶) dmypy inspect doesn't select the right file with multiple files with same name #15781

Closed
KotlinIsland opened this issue Jul 30, 2023 · 0 comments 路 Fixed by #16357
Closed
Labels
bug mypy got something wrong

Comments

@KotlinIsland
Copy link
Contributor

test.py

b: str

from demo.test import a

demo/test.py

a: int
馃憠 dmypy run test.py --export-types
Success: no issues found in 44 source files
馃憠 dmypy inspect demo/test.py:1:1
"str"
@KotlinIsland KotlinIsland added the bug mypy got something wrong label Jul 30, 2023
JukkaL pushed a commit that referenced this issue Oct 30, 2023
Fixes #15781

The fix is to switch to already resolved paths instead of relying on
`crawl_up()`. This should be more robust w.r.t. various special cases. I
also tweak the tests slightly to show full file names, to have a more
consistent output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant