operation: Drop type annotations on enum members

Type checkers will report errors when enum members have type annotations.

https://typing.python.org/en/latest/spec/enums.html#defining-members

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2025-03-24 19:26:02 -07:00
parent f4f417cbb6
commit df8d41e7fb
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -20,9 +20,9 @@ class Operation:
class State(enum.Enum):
"""Various states of an operation."""
WAITING: str = 'waiting'
RUNNING: str = 'running'
COMPLETED: str = 'completed'
WAITING = 'waiting'
RUNNING = 'running'
COMPLETED = 'completed'
def __init__(self, op_id: str, app_id: str, name: str, target: Callable,
args: list | None = None, kwargs: dict | None = None,