You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if 'return' in annotations and annotations['return'] not in [int, float, str, bool]:
raise Exception('Output type not supported and supported types are [int, float, str, bool]')
Which does not support NamedTuples, however func_to_container_op supports NamedTuple with logic defined @ _python_op.py#L136
The text was updated successfully, but these errors were encountered:
Lightweight components are more advanced in multiple aspects. They support multiple outputs and allow specifying arbitrary types. Python container components will be soon be merged with lightweight components an use the lightweight components' code generator, so this issue will be fixed by that effort.
Returned type validation for build_python_component is defined as _component_builder.py#L313
Which does not support NamedTuples, however func_to_container_op supports NamedTuple with logic defined @ _python_op.py#L136
The text was updated successfully, but these errors were encountered: