Skip to content

Rely on pyright import resolution for module names - #139

Draft
Titou325 wants to merge 6 commits into
sourcegraph:scipfrom
codemuse-app:fix-133
Draft

Titou325 wants to merge 6 commits into
sourcegraph:scipfrom
codemuse-app:fix-133

Conversation

@Titou325

@Titou325 Titou325 commented Nov 24, 2023 •

Copy link
Copy Markdown
Contributor

This is a first step towards fixing #133, there are still some cases that need to be verified (use of Symbols.makeModuleInit).

This fixes the cases previously mentioned.

Notes:

  • When checking if resolvedPaths is not empty, we need to fetch the last resolvedPath element rather than the first one.
  • This may break for unresolved imports? Need to add more test cases.
  • This uses a private function. It could be accessible from other functions?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant