add hash to enums

This commit is contained in:
Nikolay Khabarov
2017-06-19 01:26:00 +03:00
parent 53146941d1
commit 85168778f8

View File

@@ -21,6 +21,9 @@ class Enum(object):
def __str__(self):
return self._str
def __hash__(self):
return self.value
class Plane(Enum):
""" Enum for choosing plane for circular interpolation.