chore: remove stale mypy suppressions and align dataset service tests (#34130)

This commit is contained in:
99
2026-03-26 20:34:44 +08:00
committed by GitHub
parent 69c2b422de
commit fcfc96ca05
11 changed files with 195 additions and 128 deletions

View File

@ -52,6 +52,12 @@ class ReadyQueueProtocol(Protocol):
...
class NodeExecutionProtocol(Protocol):
"""Structural interface for persisted per-node execution state."""
execution_id: str | None
class GraphExecutionProtocol(Protocol):
"""Structural interface for graph execution aggregate.
@ -67,6 +73,11 @@ class GraphExecutionProtocol(Protocol):
exceptions_count: int
pause_reasons: list[PauseReason]
@property
def node_executions(self) -> Mapping[str, NodeExecutionProtocol]:
"""Return the persisted node execution state keyed by node id."""
...
def start(self) -> None:
"""Transition execution into the running state."""
...