From 7474f96c73fec2abefb4349fb55805373615abb5 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 05:37:59 +0800 Subject: [PATCH] fix(types): complete workflow note input contract --- app/workflow/actions/note.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/workflow/actions/note.py b/app/workflow/actions/note.py index d130e9847..11525c9c4 100644 --- a/app/workflow/actions/note.py +++ b/app/workflow/actions/note.py @@ -15,7 +15,9 @@ class NoteAction(BaseAction): @property def success(self) -> bool: + """返回当前动作是否已达到完成条件。""" return True - def execute(self, workflow_id: int, params: dict, context: ActionContext) -> ActionContext: + def execute(self, workflow_id: int, params: dict[str, object], context: ActionContext) -> ActionContext: + """备注不处理输入,原样保留工作流上下文。""" return context