Skip to content

Commit

Permalink
STY: Apply ruff/flake8-comprehensions rule C419
Browse files Browse the repository at this point in the history
C419 Unnecessary list comprehension
  • Loading branch information
DimitriPapadopoulos committed Sep 22, 2024
1 parent f9eba7b commit e003f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/casting.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def able_int_type(values):
>>> able_int_type([-1, 1]) == np.int8
True
"""
if any([v % 1 for v in values]):
if any(v % 1 for v in values):
return None
mn = min(values)
mx = max(values)
Expand Down

0 comments on commit e003f5a

Please sign in to comment.