diff --git a/nibabel/casting.py b/nibabel/casting.py index 31e27d0e8..042a2f415 100644 --- a/nibabel/casting.py +++ b/nibabel/casting.py @@ -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)