From b1062e257d32471105d87c2e5de62481c021c4d2 Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Mon, 9 Sep 2024 14:13:29 +0100 Subject: [PATCH] Make naming worse to keep ruff quiet --- src/blueapi/cli/format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blueapi/cli/format.py b/src/blueapi/cli/format.py index e912cb75b..0811f7f32 100644 --- a/src/blueapi/cli/format.py +++ b/src/blueapi/cli/format.py @@ -62,9 +62,9 @@ def display_full(obj: Any, stream: Stream): print(" " + proto) case DataEvent(name=name, doc=doc): print(f"{name.title()}: {fmt_dict(doc)}") - case WorkerEvent(state=state, task_status=task): + case WorkerEvent(state=st, task_status=task): print( - f"WorkerEvent: {state.name}{fmt_dict(task.model_dump() if task else {})}" + f"WorkerEvent: {st.name}{fmt_dict(task.model_dump() if task else {})}" ) case ProgressEvent(): print(f"Progress:{fmt_dict(obj.model_dump())}")