We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2010ba0 commit 0ce5d2eCopy full SHA for 0ce5d2e
statelint/fields/common.py
@@ -1,9 +1,9 @@
1
import json
2
-from enum import Enum
+from enum import StrEnum
3
from typing import Any
4
5
6
-class Comparison(str, Enum):
+class Comparison(StrEnum):
7
STRING_EQUALS = "StringEquals"
8
STRING_LESS_THAN = "StringLessThan"
9
STRING_GREATER_THAN = "StringGreaterThan"
@@ -45,7 +45,7 @@ class Comparison(str, Enum):
45
STRING_MATCHES = "StringMatches"
46
47
48
-class StateType(str, Enum):
+class StateType(StrEnum):
49
PASS = "Pass"
50
SUCCEED = "Succeed"
51
FAIL = "Fail"
statelint/problem/problem_type.py
@@ -1,7 +1,7 @@
-class ProblemType(str, Enum):
+class ProblemType(StrEnum):
# type check
FLOAT = "a Float"
STRING = "a String"
0 commit comments