Skip to content

Commit 3861420

Browse files
committed
Remove ExprCons
Can't add with ExprCons
1 parent ceaab05 commit 3861420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyscipopt/expr.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ cdef class Expr:
181181
left,right = right,left
182182
terms = left.terms.copy()
183183

184-
if isinstance(right, (Expr, ExprCons)):
184+
if isinstance(right, Expr):
185185
# merge the terms by component-wise addition
186186
for v,c in right.terms.items():
187187
terms[v] = terms.get(v, 0.0) + c

0 commit comments

Comments
 (0)