Skip to content

Commit 7af724b

Browse files
STY: Apply ruff/flake8-pie rule PIE807
PIE807 Prefer `list` over useless lambda
1 parent 4c216b1 commit 7af724b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/streamlines/tests/test_tractogram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def make_fake_tractogram(
4949
):
5050
"""Make multiple streamlines according to provided requirements."""
5151
all_streamlines = []
52-
all_data_per_point = defaultdict(lambda: [])
53-
all_data_per_streamline = defaultdict(lambda: [])
52+
all_data_per_point = defaultdict(list)
53+
all_data_per_streamline = defaultdict(list)
5454
for nb_points in list_nb_points:
5555
data = make_fake_streamline(
5656
nb_points, data_per_point_shapes, data_for_streamline_shapes, rng

0 commit comments

Comments
 (0)