Skip to content

fix Support go-to-definition from __all__ entry #1476#2292

Closed
asukaminato0721 wants to merge 1 commit intofacebook:mainfrom
asukaminato0721:1476
Closed

fix Support go-to-definition from __all__ entry #1476#2292
asukaminato0721 wants to merge 1 commit intofacebook:mainfrom
asukaminato0721:1476

Conversation

@asukaminato0721
Copy link
Contributor

Summary

Fixes #1476

Added explicit __all__ string entry lookup in exports to map cursor positions to names.

Wired go-to-definition to resolve __all__ string entries to their definitions (with a package submodule fallback for real __init__.py files).

Test Plan

Added an LSP regression test covering local and re-exported __all__ entries.

@meta-cla meta-cla bot added the cla signed label Feb 3, 2026
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

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

@meta-codesync
Copy link

meta-codesync bot commented Feb 4, 2026

@kinto0 has imported this pull request. If you are a Meta employee, you can view this in D92318352.

Copy link
Contributor

@stroxler stroxler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync bot closed this in e08dbeb Feb 5, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 5, 2026

@kinto0 merged this pull request in e08dbeb.

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.

Support go-to-definition from __all__ entry

4 participants