acoustic-carpenter-78188
11/03/2023, 10:24 PMfrom typing import NamedTuple
from flytekit import task, workflow
class TaskOutputs(NamedTuple):
train_data: str
val_data: str
# namedtuple + str
@task
def t() -> (TaskOutputs, str):
return TaskOutputs("train", "val"), "foo"
@workflow
def wf():
t()
$ pyflyte run --remote test_workflow.py wf
Failed with Unknown Exception <class 'flytekit.core.type_engine.RestrictedTypeError'> Reason: Transformer for type <class 'tuple'> is restricted currently
Transformer for type <class 'tuple'> is restricted currently
Expected behavior
Able to compile
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte