Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Aug 3, 2024
1 parent df2812d commit 5b4d03a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/resolvelib/resolvers/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,7 @@ def resolve(self, requirements: Iterable[RT], max_rounds: int) -> State[RT, CT,
# If there is only 1 unsatisfied name skip calling self._get_preference
if len(narrowed_unstatisfied_names) > 1:
# Choose the most preferred unpinned criterion to try.
name = min(
narrowed_unstatisfied_names, key=self._get_preference
)
name = min(narrowed_unstatisfied_names, key=self._get_preference)
else:
name = narrowed_unstatisfied_names[0]

Expand Down

0 comments on commit 5b4d03a

Please sign in to comment.