refactor(graph_engine): remove Optional

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- 2025-09-10 01:49:15 +08:00
parent ea5dfe41d5
commit e060d7c28c
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,3 @@
from typing import Optional
from pydantic import BaseModel, Field
from core.workflow.enums import NodeType
@ -19,9 +17,9 @@ class GraphNodeEventBase(GraphEngineEvent):
node_id: str
node_type: NodeType
in_iteration_id: Optional[str] = None
in_iteration_id: str | None = None
"""iteration id if node is in iteration"""
in_loop_id: Optional[str] = None
in_loop_id: str | None = None
"""loop id if node is in loop"""
# The version of the node, or "1" if not specified.