Skip to content

Commit

Permalink
Don't build a superfluous list
Browse files Browse the repository at this point in the history
Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
  • Loading branch information
PapyChacal and superlopuh authored Jan 25, 2024
1 parent 6877667 commit 2fdf64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdsl/irdl/irdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def get_resolved_variables(self) -> set[str]:
if len(self.attr_constrs) == 0:
return set()
return set[str].intersection(
*[constr.get_resolved_variables() for constr in self.attr_constrs]
*(constr.get_resolved_variables() for constr in self.attr_constrs)
)


Expand Down

0 comments on commit 2fdf64d

Please sign in to comment.