From 3998949d3f481cfad5da48810ed7902e528b603f Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 19 Jun 2025 13:29:30 +0200 Subject: [PATCH] Apply ruff/flake8-comprehensions preview rule C409 C409 Unnecessary list comprehension passed to `tuple()` (rewrite as a generator) --- tests/test_group.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_group.py b/tests/test_group.py index 60a1fcb9bf..b1e4fb6d6a 100644 --- a/tests/test_group.py +++ b/tests/test_group.py @@ -1642,12 +1642,10 @@ async def test_create_hierarchy_existing_nodes( elif impl == "async": with pytest.raises(err_cls, match=re.escape(msg)): tuple( - [ - x - async for x in create_hierarchy( - store=store, nodes={"node": new_metadata}, overwrite=False - ) - ] + x + async for x in create_hierarchy( + store=store, nodes={"node": new_metadata}, overwrite=False + ) ) else: raise ValueError(f"Invalid impl: {impl}")