Hey, for prefect 2.0 can I use *def my_flow(*kwarg...
# prefect-community
a
Hey, for prefect 2.0 can I use *def my_flow(*kwargs) to get my flow parameters? Or do I need to specify each parameter individually as named parameter in my flow function?
1
a
They must be named, otherwise Prefect will not know what those parameters should be But your function can accept extra kwargs afaik - LMK if you see a different behavior
a
Ah I see. I guess I can also use objects as parameters rather than simple types. I'll try that. Thanks for the reply. All in all the parameter-system in prefect 2.0 is great and the best of all of the systems I had the chance to work with.
👍 1
a
great to see you like it!