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 ), )