Skip to content

Commit

Permalink
Use inputs comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch committed Jan 11, 2024
1 parent 8cb0df0 commit 20b2d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guppy/compiler/expr_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20b2d99

Please sign in to comment.