Skip to content

Commit 584c5a1

Browse files
committed
Ignore type assessment in expressions.py
1 parent aee6da7 commit 584c5a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linopy/expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,7 @@ def merge(
23842384
has_quad_expression = any(type(e) is QuadraticExpression for e in exprs)
23852385
has_linear_expression = any(type(e) is LinearExpression for e in exprs)
23862386
if cls is None:
2387-
cls = QuadraticExpression if has_quad_expression else LinearExpression
2387+
cls = QuadraticExpression if has_quad_expression else LinearExpression # type: ignore[assignment]
23882388

23892389
if cls is QuadraticExpression and dim == TERM_DIM and has_linear_expression:
23902390
raise ValueError(

0 commit comments

Comments
 (0)