Skip to content
Snippets Groups Projects
Commit 050107e0 authored by Martin Bauer's avatar Martin Bauer
Browse files

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
parent b63cb073
Branches improved_comm
No related merge requests found
......@@ -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)
......
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