7 lines
220 B
Python
7 lines
220 B
Python
from typing import List
|
|
|
|
from typing_extensions import Literal # <= Python 3.7
|
|
|
|
Operator = Literal[">=", "<=", "<", ">", "!=", "=", "contains"]
|
|
|
|
operators: List[Operator] = [">=", "<=", "<", ">", "!=", "=", "contains"]
|