Join Slack
Powered by
Hey guys is this a prefect compliant way of defini...
# ask-community
k
kevin
04/29/2021, 2:02 AM
Hey guys is this a prefect compliant way of defining a task?
Copy code
task( fn=lambda a, b: a+b, name='some_task' )(some_a, some_b)
✅ 1
c
Chris White
04/29/2021, 2:05 AM
Yup!
@
is Python syntatic sugar for the exact same thing
k
kevin
04/29/2021, 2:06 AM
awesome, was a little worried b/c my IDE was issuing a warning 😄
kevin
04/29/2021, 2:06 AM
warnings are meant to be ignored i reckon 😛
😂 2
2
Views
Open in Slack
Previous
Next