Skip to content

Commit 9e007ec

Browse files
STY: Apply ruff/flake8-comprehensions rule C413
C413 Unnecessary `list` call around `sorted()`
1 parent 16754c8 commit 9e007ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/cifti2/tests/test_cifti2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def test_matrix():
392392
m[0] = mim_1
393393
assert list(m.mapped_indices) == [1]
394394
m.insert(0, mim_0)
395-
assert list(sorted(m.mapped_indices)) == [0, 1]
395+
assert sorted(m.mapped_indices) == [0, 1]
396396
assert h.number_of_mapped_indices == 2
397397
assert h.get_index_map(0) == mim_0
398398
assert h.get_index_map(1) == mim_1

0 commit comments

Comments
 (0)