Skip to content

Link Python imports and calls across explicit source roots - #214

Merged
tob-scott-a merged 1 commit into
mainfrom
python-cross-root-linking
Nov 24, 2026
Merged

tob-scott-a merged 1 commit into
mainfrom
python-cross-root-linking

Conversation

@DarkaMaul

Copy link
Copy Markdown
Contributor

Summary

  • Link existing absolute Python import bindings to uniquely matching modules and callable definitions across explicitly selected source roots.
  • Preserve within-root linking and source locations. Leave ambiguous, shadowed, and relative cross-root calls unresolved.
  • Document the source-root behavior and add regressions for import aliases, ambiguous modules, local shadowing, relative imports, and package ownership.

Validation

  • 822 targeted Python, source-policy, CLI, and documentation tests passed.
  • Ruff, type checking, and git diff --check passed for the changed files.
  • A source-only smoke test on pinned Warehouse inputs confirmed the cross-root call to libpass’s CryptContext and the Redis module import.

@tob-scott-a
tob-scott-a merged commit 64244a8 into main Nov 24, 2026
29 checks passed
@tob-scott-a
tob-scott-a deleted the python-cross-root-linking branch November 24, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants