Describe the bug
Not sure if this is a bug. I can't call + Variable directly.
It behaves differently from +1.
To Reproduce
from pyscipopt import Model
m = Model()
x = m.addVar(name="x", ub=10)
print(+x)
# Traceback (most recent call last):
# File "/test.py", line 5, in <module>
# print(+x)
# ^^
# TypeError: bad operand type for unary +: 'pyscipopt.scip.Variable'
Expected behavior
Calling + Variable should behave like calling Variable.
Describe the bug
Not sure if this is a bug. I can't call
+ Variabledirectly.It behaves differently from
+1.To Reproduce
Expected behavior
Calling
+ Variableshould behave like callingVariable.