I am getting the following error when I try to ser...
# flyte-support
o
I am getting the following error when I try to serialize a dataclass with List[NodeType], where NodeType is an enum.
ValueError: Only generic univariate typing.List[T] type is supported.
I have searched online but I am still at a loss. Is this a non-starter? I don't understand why Flyte can't interpret this list. Reference code below
Copy code
@dataclass_json
@dataclass
class NodeStore:    
     node_types: List[NodeType] = field(
        metadata=config(
            encoder=enum_list_encode,
            decoder=partial(enum_list_decode, NodeType),  # pyright: ignore
        ),
        default_factory=lambda: DEFAULT_NODE_TYPES,
    )
a