From a9ffbd7078677e5adddfad6ac459cd58666a2553 Mon Sep 17 00:00:00 2001
From: Michael Kuron <m.kuron@gmx.de>
Date: Mon, 26 Apr 2021 18:06:15 +0200
Subject: [PATCH] make Sympy version detection 2.0-ready

---
 pystencils/data_types.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pystencils/data_types.py b/pystencils/data_types.py
index 1ec9b0611..46abd84f3 100644
--- a/pystencils/data_types.py
+++ b/pystencils/data_types.py
@@ -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__
-- 
GitLab