Skip to content

Commit 07b0830

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

linopy/expressions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,9 +1970,7 @@ def merge(
19701970
)
19711971

19721972
if has_quad_expression and cls is not QuadraticExpression:
1973-
raise ValueError(
1974-
"Cannot merge linear expressions to QuadraticExpression"
1975-
)
1973+
raise ValueError("Cannot merge linear expressions to QuadraticExpression")
19761974

19771975
linopy_types = (variables.Variable, LinearExpression, QuadraticExpression)
19781976

0 commit comments

Comments
 (0)