Skip to content

Commit b96d12e

Browse files
committed
arguments on one line to keep black happy
1 parent 51594d6 commit b96d12e

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Diff for: pyomo/contrib/incidence_analysis/scc_solver.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626

2727

2828
def generate_strongly_connected_components(
29-
constraints,
30-
variables=None,
31-
include_fixed=False,
32-
igraph=None,
33-
timer=None,
29+
constraints, variables=None, include_fixed=False, igraph=None, timer=None
3430
):
3531
"""Yield in order ``_BlockData`` that each contain the variables and
3632
constraints of a single diagonal block in a block lower triangularization

Diff for: pyomo/util/subsystems.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def add_local_external_functions(block):
7575
named_expressions = []
7676
visitor = _ExternalFunctionVisitor(descend_into_named_expressions=False)
7777
for comp in block.component_data_objects(
78-
(Constraint, Expression, Objective),
79-
active=True,
78+
(Constraint, Expression, Objective), active=True
8079
):
8180
ef_exprs.extend(visitor.walk_expression(comp.expr))
8281
named_expr_set = ComponentSet(visitor.named_expressions)
@@ -116,10 +115,7 @@ def add_local_external_functions(block):
116115

117116

118117
def create_subsystem_block(
119-
constraints,
120-
variables=None,
121-
include_fixed=False,
122-
timer=None,
118+
constraints, variables=None, include_fixed=False, timer=None
123119
):
124120
"""This function creates a block to serve as a subsystem with the
125121
specified variables and constraints. To satisfy certain writers, other

0 commit comments

Comments
 (0)