We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102d818 commit 3ff914fCopy full SHA for 3ff914f
src/pip/_internal/resolution/resolvelib/provider.py
@@ -146,15 +146,15 @@ def get_preference(
146
lookups = (r.get_candidate_lookup() for r, _ in information[identifier])
147
candidate, ireqs = zip(*lookups)
148
else:
149
- candidate, ireqs = None, ()
+ candidate, ireqs = (None,), ()
150
151
operators = [
152
specifier.operator
153
for specifier_set in (ireq.specifier for ireq in ireqs if ireq)
154
for specifier in specifier_set
155
]
156
157
- direct = candidate is not None
+ direct = any(candidate)
158
pinned = any(op[:2] == "==" for op in operators)
159
unfree = bool(operators)
160
0 commit comments