Fix set_output type hint (#3516)
Browse files### What problem does this PR solve?
Fix set_output type hint
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- agent/component/base.py +1 -1
agent/component/base.py
CHANGED
|
@@ -440,7 +440,7 @@ class ComponentBase(ABC):
|
|
| 440 |
setattr(self._param, self._param.output_var_name, None)
|
| 441 |
self._param.inputs = []
|
| 442 |
|
| 443 |
-
def set_output(self, v: pd.DataFrame):
|
| 444 |
setattr(self._param, self._param.output_var_name, v)
|
| 445 |
|
| 446 |
def get_input(self):
|
|
|
|
| 440 |
setattr(self._param, self._param.output_var_name, None)
|
| 441 |
self._param.inputs = []
|
| 442 |
|
| 443 |
+
def set_output(self, v: partial | pd.DataFrame):
|
| 444 |
setattr(self._param, self._param.output_var_name, v)
|
| 445 |
|
| 446 |
def get_input(self):
|