From 20b2d99e5dc73661628cbd8b32ed511c465b8f48 Mon Sep 17 00:00:00 2001 From: Mark Koch Date: Thu, 11 Jan 2024 11:00:18 +0000 Subject: [PATCH] Use inputs comprehension --- guppy/compiler/expr_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guppy/compiler/expr_compiler.py b/guppy/compiler/expr_compiler.py index feb6caad..bcf3b4eb 100644 --- a/guppy/compiler/expr_compiler.py +++ b/guppy/compiler/expr_compiler.py @@ -234,7 +234,7 @@ def compile_generators(elt: ast.expr, gens: list[DesugaredGenerator]) -> None: compiler.compile_stmts([gen.hasnext_assign], self.dfg) cond = self.graph.add_conditional( self.visit(gen.hasnext), - [self.visit(gen.iter), self.visit(list_name)], + [self.visit(inp) for inp in inputs], ) # If the iterator is finished, output the iterator and list as is (this