Add type hint for empty iteration inputs

This commit is contained in:
-LAN-
2025-12-17 12:58:12 +08:00
parent bd1f9bb735
commit aff9853156

View File

@@ -150,7 +150,7 @@ class IterationNode(LLMUsageTrackingMixin, Node[IterationNodeData]):
def _handle_empty_iteration(self, variable: ArraySegment | NoneSegment) -> Generator[NodeEventBase, None, None]:
started_at = naive_utc_now()
inputs = {"iterator_selector": []}
inputs: dict[str, object] = {"iterator_selector": []}
usage = LLMUsage.empty_usage()
yield IterationStartedEvent(