# ask-the-community

Cornelis Boon

03/05/2024, 1:44 PM
I'm a bit confused on how to chain tasks that have non-None return values. All the examples in the docs are using functions with None return values. Would this be correct?
Copy code
def my_wf():
   data = data_getting_task():
   promise1 = some_non_data_dependent_task()
   data >> promise1
Or do I need to cast/handle it differently?

Ketan (kumare3)

03/05/2024, 7:03 PM
works for me, does it not work for you
remember in python None is always returned
so Flyte captures that automatically