mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-10-15 07:56:59 +00:00
add hash to enums
This commit is contained in:
1 parent
53146941d1
commit
85168778f8
1 file changed
+3
@@ -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