mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
add type canvas (#6680)
add type canvas ### Type of change - [x] Refactoring
This commit is contained in:
@ -396,6 +396,8 @@ class ComponentBase(ABC):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, canvas, id, param: ComponentParamBase):
|
def __init__(self, canvas, id, param: ComponentParamBase):
|
||||||
|
from agent.canvas import Canvas # Local import to avoid cyclic dependency
|
||||||
|
assert isinstance(canvas, Canvas), "canvas must be an instance of Canvas"
|
||||||
self._canvas = canvas
|
self._canvas = canvas
|
||||||
self._id = id
|
self._id = id
|
||||||
self._param = param
|
self._param = param
|
||||||
|
|||||||
Reference in New Issue
Block a user