mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 23:48:04 +08:00
lint fix
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
from abc import abstractmethod
|
||||
from typing import Optional, Type
|
||||
from typing import Optional
|
||||
|
||||
from core.workflow.entities.base_node_data_entities import BaseNodeData
|
||||
from core.workflow.entities.node_entities import NodeType
|
||||
@ -8,7 +8,7 @@ from core.workflow.entities.variable_pool import VariablePool
|
||||
|
||||
class BaseNode:
|
||||
_node_type: NodeType
|
||||
_node_data_cls: Type[BaseNodeData]
|
||||
_node_data_cls: type[BaseNodeData]
|
||||
|
||||
def __init__(self, config: dict) -> None:
|
||||
self._node_id = config.get("id")
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
from typing import Type, Optional
|
||||
from typing import Optional
|
||||
|
||||
from core.workflow.entities.node_entities import NodeType
|
||||
from core.workflow.entities.variable_pool import VariablePool
|
||||
|
||||
Reference in New Issue
Block a user