hi team, wondering is this input type supported fo...
# ask-the-community
m
hi team, wondering is this input type supported for a task?
typing.Union[typing.List[dataclass], None]
j
it is supported but there was some complications regarding nested optional class when relaunching or recovering workflow executions that flytepropeller was crashing
m
i tried using something like this for a task
Copy code
input_validation_splits: typing.List[dataclass] = [],
    input_model_bundle: typing.Optional[dataclass] = None,
but it’s complaining
Ambiguous choice of variant for union type. Both pdl-recordtemplate-transformer and none transformers match