diff --git a/pystencils/data_types.py b/pystencils/data_types.py index a4752b148afa43bff9ac39a999b5dc4ca33fd430..20eb94d6b83474bfab46dc491a05b3b1ed2191d9 100644 --- a/pystencils/data_types.py +++ b/pystencils/data_types.py @@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol): def __getnewargs__(self): return self.name, self.dtype + @property + def canonical(self): + return self + + @property + def reversed(self): + return self + def create_type(specification): """Creates a subclass of Type according to a string or an object of subclass Type.