mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-01-11 02:30:05 +00:00
add hash to enums
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user