8000 STY: Apply ruff/flake8-comprehensions preview rule C409 · nipy/nibabel@b8be5d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8be5d2

Browse files
STY: Apply ruff/flake8-comprehensions preview rule C409
C409 Unnecessary list comprehension passed to `tuple()` (rewrite as a generator)
1 parent 9132469 commit b8be5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/streamlines/tests/test_array_sequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_creating_arraysequence_from_list(self):
7979
# List of ndarrays.
8080
N = 5
8181
for ndim in range(1, N + 1):
82-
common_shape = tuple([SEQ_DATA['rng'].randint(1, 10) for _ in range(ndim - 1)])
82+
common_shape = tuple(SEQ_DATA['rng'].randint(1, 10) for _ in range(ndim - 1))
8383
data = generate_data(nb_arrays=5, common_shape=common_shape, rng=SEQ_DATA['rng'])
8484
check_arr_seq(ArraySequence(data), data)
8585

0 commit comments

Comments
 (0)
0