<#4358 [BUG] Unable to compile task with (NamedTup...
# flytekit
c
#4358 [BUG] Unable to compile task with (NamedTuple, str) as the output Issue created by ByronHsu ### Describe the bug from 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