mirror of https://github.com/langgenius/dify.git
chore(graph_engine): add type hint for event_queue
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
9dc1e9724e
commit
55085a9ca2
|
|
@ -20,6 +20,7 @@ from core.workflow.enums import NodeExecutionType
|
|||
from core.workflow.graph import Graph
|
||||
from core.workflow.graph_events import (
|
||||
GraphEngineEvent,
|
||||
GraphNodeEventBase,
|
||||
GraphRunAbortedEvent,
|
||||
GraphRunFailedEvent,
|
||||
GraphRunStartedEvent,
|
||||
|
|
@ -103,7 +104,7 @@ class GraphEngine:
|
|||
|
||||
# Initialize queues
|
||||
self.ready_queue: queue.Queue[str] = queue.Queue()
|
||||
self.event_queue: queue.Queue = queue.Queue()
|
||||
self.event_queue: queue.Queue[GraphNodeEventBase] = queue.Queue()
|
||||
|
||||
# Initialize subsystems
|
||||
self._initialize_subsystems()
|
||||
|
|
|
|||
Loading…
Reference in New Issue