Commit a9ffbd70 authored by Michael Kuron's avatar Michael Kuron
Browse files

make Sympy version detection 2.0-ready

parent cdefa7e1
Pipeline #31736 passed with stage
in 11 minutes and 37 seconds
......@@ -583,7 +583,7 @@ def get_type_of_expression(expr,
sympy_version = sp.__version__.split('.')
if int(sympy_version[0]) <= 1 and int(sympy_version[1]) >= 9:
if int(sympy_version[0]) * 100 + int(sympy_version[1]) >= 109:
# __setstate__ would bypass the contructor, so we remove it
sp.Number.__getstate__ = sp.Basic.__getstate__
del sp.Basic.__getstate__
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment