Skip to content

Commit

Permalink
STY: Apply ruff/flake8-comprehensions preview rule C409
Browse files Browse the repository at this point in the history
C409 Unnecessary list comprehension passed to `tuple()` (rewrite as a generator)
  • Loading branch information
DimitriPapadopoulos committed Oct 1, 2024
1 parent d9ec21d commit 4758895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/streamlines/tests/test_array_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_creating_arraysequence_from_list(self):
# List of ndarrays.
N = 5
for ndim in range(1, N + 1):
common_shape = tuple([SEQ_DATA['rng'].randint(1, 10) for _ in range(ndim - 1)])
common_shape = tuple(SEQ_DATA['rng'].randint(1, 10) for _ in range(ndim - 1))
data = generate_data(nb_arrays=5, common_shape=common_shape, rng=SEQ_DATA['rng'])
check_arr_seq(ArraySequence(data), data)

Expand Down

0 comments on commit 4758895

Please sign in to comment.