From 050107e074f246e7ebc1093f51a57d713c23e8c3 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Thu, 16 Jan 2020 12:28:33 +0100 Subject: [PATCH] Bugfix: pystencils.Type is a sympy.Atom now - Type does violate the sympy invariant obj.func(*obj.args) == obj - This seems to be ok when the object is an atom --- pystencils/data_types.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pystencils/data_types.py b/pystencils/data_types.py index 5d553006b..786351f52 100644 --- a/pystencils/data_types.py +++ b/pystencils/data_types.py @@ -575,9 +575,7 @@ def get_type_of_expression(expr, raise NotImplementedError("Could not determine type for", expr, type(expr)) -class Type(sp.Basic): - is_Atom = True - +class Type(sp.Atom): def __new__(cls, *args, **kwargs): return sp.Basic.__new__(cls) -- GitLab