We all know that prefect flows and tasks are normally used as decorators:
Copy code
from prefect import flow, task
@task
def task_my_funct():
...
however, there are times were the function we want to decorate is already defined elsewhere, or its not appropriate to decorate. In this case we can still use the decorator in line without the syntax sugar
Copy code
from my_lib import my_func
task_my_funct = task(my_func)
This behaves as expected, but it really confuses the type checkers, which consider
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.