We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2f14a0 commit 62ac8e1Copy full SHA for 62ac8e1
casparser/enums.py
@@ -17,7 +17,15 @@ class CASFileType(IntEnum):
17
DETAILED = 2
18
19
20
-class TransactionType(Enum):
+class TransactionType(str, Enum):
21
+ # noinspection PyMethodParameters
22
+ def _generate_next_value_(name, start, count, last_values) -> str: # type: ignore
23
+ """
24
+ Uses the name as the automatic value, rather than an integer
25
+ See https://docs.python.org/3/library/enum.html#using-automatic-values for reference
26
27
+ return name
28
+
29
PURCHASE = auto()
30
PURCHASE_SIP = auto()
31
REDEMPTION = auto()
0 commit comments