Hey guys is this a prefect compliant way of defini...
# ask-community
k
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
Yup!
@
is Python syntatic sugar for the exact same thing
k
awesome, was a little worried b/c my IDE was issuing a warning 😄
warnings are meant to be ignored i reckon 😛
😂 2