Skip to content

Commit 5dc6ac7

Browse files
Apply ruff/flake8-comprehensions rule C416
C416 Unnecessary `list` comprehension (rewrite using `list()`)
1 parent ef79bc9 commit 5dc6ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/v3/test_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def test_group_iter(store: Store, zarr_format: ZarrFormat) -> None:
271271

272272
group = Group.from_store(store, zarr_format=zarr_format)
273273
with pytest.raises(NotImplementedError):
274-
[x for x in group]
274+
list(group)
275275

276276

277277
def test_group_len(store: Store, zarr_format: ZarrFormat) -> None:

0 commit comments

Comments
 (0)