Skip to content

Commit 1fb972f

Browse files
committed
remove useless list()
1 parent 8d889ad commit 1fb972f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oqpy/classical_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,5 +457,5 @@ def to_ast(self, program: Program) -> ast.Expression:
457457
program.externs[self.identifier.name] = self.extern_decl
458458
if self.subroutine_decl is not None:
459459
program._add_subroutine(self.identifier.name, self.subroutine_decl)
460-
args = list(self.args.values()) if isinstance(self.args, dict) else self.args
460+
args = self.args.values() if isinstance(self.args, dict) else self.args
461461
return ast.FunctionCall(self.identifier, map_to_ast(program, args))

0 commit comments

Comments
 (0)