Skip to content

Commit

Permalink
Apply black formatting to pyomo/core/base/set.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mfripp committed Aug 25, 2024
1 parent 4516830 commit e2307ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyomo/core/base/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,10 @@ def construct(self, data=None):
# from the object it provides (e.g., a dict with all members of
# the indexed set). This is similar to
# IndexedComponent._construct_from_rule_using_setitem.
if self.is_indexed() and type(self._init_values._init) is ScalarCallInitializer:
if (
self.is_indexed()
and type(self._init_values._init) is ScalarCallInitializer
):
self._init_values = TuplizeValuesInitializer(
Initializer(
self._init_values._init(self.parent_block(), None),
Expand Down

0 comments on commit e2307ba

Please sign in to comment.