diff --git a/pyomo/core/base/set.py b/pyomo/core/base/set.py index 72a6f2171da..f6acad9266b 100644 --- a/pyomo/core/base/set.py +++ b/pyomo/core/base/set.py @@ -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),