From b55325ef5e101e7d297f374ff23c3447620164fa Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:54:50 +0200 Subject: [PATCH] Apply ruff/flake8-comprehensions rule C419 C419 Unnecessary list comprehension --- test/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common.py b/test/common.py index ec2fb35..6503f3f 100644 --- a/test/common.py +++ b/test/common.py @@ -40,6 +40,6 @@ def check_warnings(func_args_kwargs, *, num=None, category=None, contain=None): if num is not None: assert len(W) == num if category is not None: - assert all([issubclass(w.category, category) for w in W]) + assert all(issubclass(w.category, category) for w in W) if contain is not None: - assert all([contain in str(w.message) for w in W]) + assert all(contain in str(w.message) for w in W)