Hi, are tasks with variable parameters are possibl...
# flyte-support
s
Hi, are tasks with variable parameters are possible, impossible or possible but not-recommended? Something like
Copy code
@task
def jsonify(**args: str) -> str:
   return json.dumps(str)
a
flytekit supports positional args, but not sure if already covers variable parameters
s
Apparently variable parameters are not supported yet. At least I get errors from here.
f
Variable parameters not supported please use dataclasses
s
Could you elaborate how dataclasses can help me?
f
As in you can add new attributes to a data class without having to update your code
s
Does it help me, if I want a task, that can have input from different amount of other nodes?
f
I guess it can or you can simply pass a dict right