Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Jul 3, 2024
1 parent 88ee97f commit 2d71042
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ def _collect_constants(operation: Operation) -> Iterator[Constant]:
if operand.operation == operation_type:
context_stack.append(operand)
continue
elif isinstance(operand, Constant) and isinstance(operand.value, int) and _identity_constant(operation_type, operand_type).value != operand.value:
elif (
isinstance(operand, Constant)
and isinstance(operand.value, int)
and _identity_constant(operation_type, operand_type).value != operand.value
):
yield operand


Expand Down

0 comments on commit 2d71042

Please sign in to comment.