Skip to content

fix find-references sometimes does go-to-def #2574#4184

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:2574
Open

fix find-references sometimes does go-to-def #2574#4184
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:2574

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #2574

Module bindings now retain whether they use an explicit alias.
Find-references stops at renamed module imports instead of navigating into the imported module.

Test Plan

Added regression coverage for both from x import y as z and import x.y as z.

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

find-references sometimes does go-to-def

1 participant