From 9b3cf5fb10a17161b54c9dfec27f3a28bb59996f Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Fri, 6 Jun 2025 18:07:27 +0800 Subject: [PATCH] chore(api): ignore mypy errors --- api/models/workflow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/models/workflow.py b/api/models/workflow.py index 49f5819a30..61845fcb33 100644 --- a/api/models/workflow.py +++ b/api/models/workflow.py @@ -626,7 +626,10 @@ class WorkflowNodeExecutionModel(Base): cls.tenant_id, cls.workflow_id, cls.node_id, - cls.created_at.desc(), + # MyPy may flag the following line because it doesn't recognize that + # the `declared_attr` decorator passes the receiving class as the first + # argument to this method, allowing us to reference class attributes. + cls.created_at.desc(), # type: ignore ), )