diff --git a/pytato/loopy.py b/pytato/loopy.py index 5b49adeccca2b10aee91a370700416ef0ba4af45..11ac1bbe9ed55f82f0b26e72631ae5f420c52891 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.")