Fix set_output type hint (#3516)

### What problem does this PR solve?

Fix set_output type hint

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu 2024-11-20 13:52:28 +08:00 committed by Yingfeng Zhang
parent d02a2b131a
commit 9b4c2868bd

View File

@ -440,7 +440,7 @@ class ComponentBase(ABC):
setattr(self._param, self._param.output_var_name, None)
self._param.inputs = []
def set_output(self, v: pd.DataFrame):
def set_output(self, v: partial | pd.DataFrame):
setattr(self._param, self._param.output_var_name, v)
def get_input(self):