dry-ability-69144
03/08/2023, 2:01 PMValueError: Only generic univariate typing.List[T] type is supported.
I tried to use the example in doc, https://flyte--943.org.readthedocs.build/projects/cookbook/en/943/auto/core/type_system/custom_objects.htmldry-ability-69144
03/08/2023, 3:06 PMhigh-accountant-32689
03/08/2023, 3:17 PMdry-ability-69144
03/08/2023, 4:26 PM@dataclass_json
@dataclass
class Test_custom_object(object):
flyte_file: FlyteFile
test_data: str
A snippet from the class
@task(requests=Resources(cpu='1', mem='600Mi'))
def test_task(file: Datum) -> float:
print(file.flyte_file)
Snippet from workflow
all_samples = map_task(
sample_task,
metadata=TaskMetadata(retries=1)
)(file=samples)
map_task(
test_task,
metadata=TaskMetadata(retries=1)
)(file=all_samples)
tall-lock-23197
all_samples
list elements?dry-ability-69144
03/09/2023, 11:18 AMall_samples
is returning me a list of Test_custom_object