From e45d63b50fedab07a8ed74e353922906c7dbf4be Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 16 Apr 2023 22:50:49 -0500 Subject: [PATCH] Fix some instances of flake8-comprehensions C419 --- pytato/loopy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytato/loopy.py b/pytato/loopy.py index 5b49ade..11ac1bb 100644 --- a/pytato/loopy.py +++ b/pytato/loopy.py @@ -207,8 +207,8 @@ def call_loopy(translation_unit: "lp.TranslationUnit", # {{{ sanity checks - if any([arg.is_input and arg.is_output - for arg in translation_unit[entrypoint].args]): + if any(arg.is_input and arg.is_output + for arg in translation_unit[entrypoint].args): # Pytato DAG cannot have stateful nodes. raise ValueError("Cannot call a kernel with side-effects.") -- GitLab