Skip to content

Commit 1f2c8cd

Browse files
uranusjrpfmoore
andauthored
Update docstring to reflect non-equal specifier preference
Co-authored-by: Paul Moore <[email protected]>
1 parent a24176b commit 1f2c8cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pip/_internal/resolution/resolvelib/provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def get_preference(
6565
6666
* Prefer if any of the known requirements points to an explicit URL.
6767
* If equal, prefer if any requirements contain `===` and `==`.
68+
* If equal, prefer if requirements include version constraints (e.g., `>=` or `<`).
6869
* If equal, prefer user-specified (non-transitive) requirements.
6970
* If equal, order alphabetically for consistency (helps debuggability).
7071
"""

0 commit comments

Comments
 (0)