Skip to content

Commit

Permalink
Black has an opinion
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Jul 8, 2024
1 parent 6c05a17 commit dd1d3b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pyomo/repn/parameterized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ def _handle_division_ANY_pseudo_constant(visitor, node, arg1, arg2):


def _handle_pow_pseudo_constant_constant(visitor, node, arg1, arg2):
return _FIXED, to_expression(visitor, arg1) ** to_expression(
visitor, arg2
)
return _FIXED, to_expression(visitor, arg1) ** to_expression(visitor, arg2)


def _handle_pow_nonlinear(visitor, node, arg1, arg2):
Expand Down Expand Up @@ -315,9 +313,7 @@ def _handle_pow_nonlinear(visitor, node, arg1, arg2):

def _handle_unary_pseudo_constant(visitor, node, arg):
# We override this because we can't blindly use apply_node_operation in this case
return _FIXED, node.create_node_with_local_data(
(to_expression(visitor, arg),)
)
return _FIXED, node.create_node_with_local_data((to_expression(visitor, arg),))


_exit_node_handlers[UnaryFunctionExpression].update(
Expand Down

0 comments on commit dd1d3b2

Please sign in to comment.