diff options
Diffstat (limited to 'TurtleArt/tatype.py')
-rw-r--r-- | TurtleArt/tatype.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/TurtleArt/tatype.py b/TurtleArt/tatype.py index 2c78c92..e6ffbb9 100644 --- a/TurtleArt/tatype.py +++ b/TurtleArt/tatype.py @@ -46,6 +46,12 @@ class Type(object): def __str__(self): return str(self.name) + +class TypeDisjunction(tuple,Type): + """ Disjunction of two or more Types (from the type hierarchy) """ + pass + + TYPE_OBJECT = Type('object', 0) TYPE_CHAR = Type('char', 1) TYPE_COLOR = Type('color', 2) |