Hi all, I've got a flytekit question. We're using ...
# flyte-support
n
Hi all, I've got a flytekit question. We're using a
NamedTuple
as both inputs/outputs to tasks and workflows in our python flytekit layer but running into a host of serialization issues. Are there any examples anyone has of using a complex object/named tuple? I.e. TaskA emits DataA task B needs to take DataA as an arg, and the workflow might need to inspect DataA for a field in it. Is this something that's currently possible?
f
Can you use dataclasses?
in v2, we support pydantic and dataclases natively
Hey Patrick would love to understand more and happy to get you guys to V2
Tuples are today not supported natively in the system
n
🤔 I'm unsure so if we could use dataclasses but that would be much simpler. We've got some typing things around using NamedTuple I'm curious if tomorrow @enough-branch-23683 could comment any more on how they're used.