jolly-florist-66728
09/25/2024, 4:51 PM@task
def jsonify(**args: str) -> str:
return json.dumps(str)
# Answer
Flyte tasks do not support variable parameters (**kwargs). Tasks must be defined with explicit keyword arguments to ensure clarity and avoid errors related to parameter ordering. This limitation is documented in a GitHub issue.
Would you like more detail on how to work with the current system using explicit keyword arguments?
Sources:
- GitHub issue #1339
Slack Link
https://.slack.com/archives/CP2HDHKE1/p1727283062.121959 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.