Skip to content

Commit

Permalink
Update docstring to reflect non-equal specifier preference
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
  • Loading branch information
uranusjr and pfmoore authored Dec 3, 2020
1 parent a24176b commit 1f2c8cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pip/_internal/resolution/resolvelib/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def get_preference(
* Prefer if any of the known requirements points to an explicit URL.
* If equal, prefer if any requirements contain `===` and `==`.
* If equal, prefer if requirements include version constraints (e.g., `>=` or `<`).
* If equal, prefer user-specified (non-transitive) requirements.
* If equal, order alphabetically for consistency (helps debuggability).
"""
Expand Down

0 comments on commit 1f2c8cd

Please sign in to comment.