Skip to content

Commit

Permalink
STY: Apply ruff/flake8-comprehensions rule C413
Browse files Browse the repository at this point in the history
C413 Unnecessary `list` call around `sorted()`
  • Loading branch information
DimitriPapadopoulos committed Sep 22, 2024
1 parent c544b89 commit af40039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/cifti2/tests/test_cifti2.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def test_matrix():
m[0] = mim_1
assert list(m.mapped_indices) == [1]
m.insert(0, mim_0)
assert list(sorted(m.mapped_indices)) == [0, 1]
assert sorted(m.mapped_indices) == [0, 1]
assert h.number_of_mapped_indices == 2
assert h.get_index_map(0) == mim_0
assert h.get_index_map(1) == mim_1
Expand Down

0 comments on commit af40039

Please sign in to comment.