Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use self.find_candidates instead of self._finder.find_all_candidate
  • Loading branch information
notatallshaw committed Oct 13, 2025
commit 5af363e1c5018736da59e9c1cf8fc89882a5a31d
11 changes: 10 additions & 1 deletion src/pip/_internal/resolution/resolvelib/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,16 @@ def _has_any_candidates(self, project_name: str) -> bool:
"""
Check if there are any candidates available for the project name.
"""
return any(self._finder.find_all_candidates(project_name))
return any(
self.find_candidates(
project_name,
requirements={project_name: []},
incompatibilities={},
constraint=Constraint.empty(),
prefers_installed=True,
is_satisfied_by=lambda r, c: True,
)
)

def get_installation_error(
self,
Expand Down