abundant-hamburger-66584
02/16/2023, 3:49 PMfrom flytekit import workflow, dynamic, task
@dataclass_json
@dataclass
class Params:
color: str
@task
def print_color(c: str):
print(c)
@dynamic
def wf(params: Params) -> Params:
print_color(c=params.color)
return inner
freezing-airport-6809
freezing-airport-6809
hallowed-mouse-14616
02/16/2023, 4:04 PMLiteral
as a field of the dataclass rather than just the dataclass itself, then propeller internally can parse and retrieve the field when passing input values. I'm convinced it would be possible.hallowed-mouse-14616
02/16/2023, 4:05 PMabundant-hamburger-66584
02/16/2023, 4:09 PM