Skip to content

Commit

Permalink
Apply ruff/flake8-comprehensions rule C419
Browse files Browse the repository at this point in the history
C419 Unnecessary list comprehension
  • Loading branch information
DimitriPapadopoulos committed Sep 27, 2024
1 parent b825c4d commit d025516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d025516

Please sign in to comment.