Skip to content

Commit 102bbf7

Browse files
STY: Apply ruff/flake8-comprehensions rule C419
C419 Unnecessary list comprehension
1 parent a826ccd commit 102bbf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/casting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def able_int_type(values):
764764
>>> able_int_type([-1, 1]) == np.int8
765765
True
766766
"""
767-
if any([v % 1 for v in values]):
767+
if any(v % 1 for v in values):
768768
return None
769769
mn = min(values)
770770
mx = max(values)

0 commit comments

Comments
 (0)