Skip to content

Commit d1d9145

Browse files
MrMinouranusjr
andauthored
Refactor set(...){...}
Co-authored-by: Tzu-ping Chung <[email protected]>
1 parent a2c5794 commit d1d9145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def _report_single_requirement_conflict(self, req, parent):
412412
req_disp = f"{req} (from {parent.name})"
413413

414414
cands = self._finder.find_all_candidates(req.project_name)
415-
versions = [str(v) for v in sorted(set(c.version for c in cands))]
415+
versions = [str(v) for v in sorted({c.version for c in cands})]
416416

417417
logger.critical(
418418
"Could not find a version that satisfies the requirement %s "

0 commit comments

Comments
 (0)