Переглянути джерело

add type canvas (#6680)

add type canvas
### Type of change
- [x] Refactoring
tags/v0.18.0
so95 7 місяці тому
джерело
коміт
1985ff7918
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 2 додано та 0 видалено
  1. 2
    0
      agent/component/base.py

+ 2
- 0
agent/component/base.py Переглянути файл

@@ -396,6 +396,8 @@ class ComponentBase(ABC):
)

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._id = id
self._param = param

Завантаження…
Відмінити
Зберегти