Commit e303e88f authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add TypedSymbol.reversed/canonical

parent 7163fca0
...@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol): ...@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol):
def __getnewargs__(self): def __getnewargs__(self):
return self.name, self.dtype return self.name, self.dtype
@property
def canonical(self):
return self
@property
def reversed(self):
return self
def create_type(specification): def create_type(specification):
"""Creates a subclass of Type according to a string or an object of subclass Type. """Creates a subclass of Type according to a string or an object of subclass Type.
......
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