https://flyte.org logo
#ask-the-community
Title
# ask-the-community
m

Melody Lui

09/21/2023, 9:22 PM
hi team, wondering is this input type supported for a task?
typing.Union[typing.List[dataclass], None]
j

Jay Ganbat

09/21/2023, 9:49 PM
it is supported but there was some complications regarding nested optional class when relaunching or recovering workflow executions that flytepropeller was crashing
m

Melody Lui

09/22/2023, 12:22 AM
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