From df8d41e7fb4e931b26b8433f2ed5addf8de8d2da Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 24 Mar 2025 19:26:02 -0700 Subject: [PATCH] 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 --- plinth/operation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/operation.py b/plinth/operation.py index 8ae517592..e6f9be658 100644 --- a/plinth/operation.py +++ b/plinth/operation.py @@ -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,