Skip to content

Commit

Permalink
Enforce ruff/refurb rule FURB192
Browse files Browse the repository at this point in the history
FURB192 Prefer `max` over `sorted()` to compute the maximum value in a sequence
  • Loading branch information
DimitriPapadopoulos committed Jan 1, 2025
1 parent 181b596 commit 282cc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def _find_latest_available_vs_ver(self):

vc_vers = set(reg_vc_vers)
vc_vers.update(self.known_vs_paths)
return sorted(vc_vers)[-1]
return max(vc_vers)

def find_reg_vs_vers(self):
"""
Expand Down

0 comments on commit 282cc26

Please sign in to comment.