Skip to content

Commit 1d23943

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ea1ebae commit 1d23943

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linopy/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,9 @@ def add_objective(
843843
objective = Objective(expression=expr, model=self, sense=sense)
844844
else:
845845
sense = sense or "min"
846-
objective = Objective(expression=self.linexpr(*expr), model=self, sense=sense)
846+
objective = Objective(
847+
expression=self.linexpr(*expr), model=self, sense=sense
848+
)
847849

848850
if not allow_constant and objective.expression.has_constant:
849851
raise ConstantObjectiveError(

0 commit comments

Comments
 (0)