forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Simplify Python dependency inference handling of type stubs (
pantsbuild#14017) Our Python dependency inference code is tricky because we allow you to have one type stub and implementation, whereas that would normally result in ambiguity. The original implementation was much more complex than necessary because it had each specific module mapping handle ambiguity, e.g. the first-party vs third-party module mappings. Now, we simply have each mapping record _all_ owners and whether each owner is a type stub vs. implementation. Then, our final `ModuleOwners` rule can easily determine ambiguity. [ci skip-rust] [ci skip-build-wheels]
- Loading branch information
1 parent
c758e18
commit 3458511
Showing
4 changed files
with
277 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.