turbaszek opened a new issue #8996: URL: https://github.com/apache/airflow/issues/8996
**Description** Use type hints to indicate multiple return values of `@task` decorated function to improve dereferencing. Using type hints to enhance code behaviour is for example done in: https://databricks.com/blog/2020/05/20/new-pandas-udfs-and-python-type-hints-in-the-upcoming-release-of-apache-spark-3-0.html **Use case / motivation** Currently: ```python @task(multiple_outputs=True) def my_function(): return 1, 2, 3 ``` expected: ``` @task def my_function() -> Tuple[int, int, int]: return 1, 2, 3 ``` **Related Issues** https://github.com/apache/airflow/pull/8962/files#r429341828 https://github.com/apache/airflow/pull/8962/files#r428948073 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
