We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aee6da7 commit 584c5a1Copy full SHA for 584c5a1
1 file changed
linopy/expressions.py
@@ -2384,7 +2384,7 @@ def merge(
2384
has_quad_expression = any(type(e) is QuadraticExpression for e in exprs)
2385
has_linear_expression = any(type(e) is LinearExpression for e in exprs)
2386
if cls is None:
2387
- cls = QuadraticExpression if has_quad_expression else LinearExpression
+ cls = QuadraticExpression if has_quad_expression else LinearExpression # type: ignore[assignment]
2388
2389
if cls is QuadraticExpression and dim == TERM_DIM and has_linear_expression:
2390
raise ValueError(
0 commit comments