Skip to content

Commit

Permalink
fix: removed unnecesary list comprenhension
Browse files Browse the repository at this point in the history
  • Loading branch information
Napuh committed Nov 5, 2024
1 parent 33547e8 commit 568e830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mteb/leaderboard/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def format_n_parameters(n_parameters) -> str:

def split_on_capital(s: str) -> str:
"""Splits on capital letters and joins with spaces"""
if all([c.isupper() for c in s]):
if all(c.isupper() for c in s):
return s
return " ".join(re.findall("[A-Z][^A-Z]*", s))

Expand Down

0 comments on commit 568e830

Please sign in to comment.