Make sure DataName returns the correct value

This commit is contained in:
Odd Stråbø 2023-12-09 16:36:25 +01:00
parent 457e7cf8a3
commit 9bb8e2e02e

View file

@ -43,6 +43,9 @@ class DataName(str, Enum):
def __repr__(self): def __repr__(self):
return repr(self.value) return repr(self.value)
def __str__(self):
return repr(self)
class DataItem: class DataItem:
name: DataName name: DataName