17 lines
296 B
Python
17 lines
296 B
Python
from enum import Enum
|
|
|
|
|
|
class OperatorEnum(str, Enum):
|
|
CONTAINS = "contains"
|
|
EXISTS = "exists"
|
|
IS_IN = "is in"
|
|
VALUE_0 = ">"
|
|
VALUE_1 = ">="
|
|
VALUE_2 = "="
|
|
VALUE_3 = "!="
|
|
VALUE_4 = "<"
|
|
VALUE_5 = "<="
|
|
|
|
def __str__(self) -> str:
|
|
return str(self.value)
|