Skip to content

Commit

Permalink
Black: breaking even on whitespace, for once
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Jul 8, 2024
1 parent 0f7390d commit 3235f92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyomo/repn/parameterized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ def _before_var(visitor, child):
# NEGATION handlers
#


def _handle_negation_pseudo_constant(visitor, node, arg):
return (_FIXED, -1 * arg[1])


#
# PRODUCT handlers
#
Expand Down Expand Up @@ -243,7 +245,6 @@ def _handle_division_ANY_pseudo_constant(visitor, node, arg1, arg2):
return arg1



#
# EXPONENTIATION handlers
#
Expand All @@ -261,7 +262,6 @@ def _handle_pow_nonlinear(visitor, node, arg1, arg2):
return _GENERAL, ans



#
# ABS and UNARY handlers
#
Expand All @@ -280,7 +280,7 @@ def define_exit_node_handlers(exit_node_handlers=None):
exit_node_handlers[NegationExpression].update(
{(_FIXED,): _handle_negation_pseudo_constant}
)

exit_node_handlers[ProductExpression].update(
{
(_CONSTANT, _CONSTANT): _handle_product_constant_constant,
Expand Down

0 comments on commit 3235f92

Please sign in to comment.