You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/11 07:48:29 UTC

[GitHub] [airflow] uranusjr opened a new pull request #20800: Better multiple_outputs inferral for @task.python

uranusjr opened a new pull request #20800:
URL: https://github.com/apache/airflow/pull/20800


   This builds on #19608 and switches the implementation from using `inspect.signature()` (which uses `__annotations__` internally) to `typing_extension.get_type_hints()` (not the `typing` one for better backward compatibility) to provide better type resolution from “stringified” annotations. This better supports `from __future__ import annotation` and other non-define-time resolved annotations.
   
   To improve test writability and readability, `TestAirflowTaskDecorator` is converted from unittest to pytest-style for better version-based test-skipping fuinctionalities.
   
   cc @josh-fell 
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr merged pull request #20800: Better multiple_outputs inferral for @task.python

Posted by GitBox <gi...@apache.org>.
uranusjr merged pull request #20800:
URL: https://github.com/apache/airflow/pull/20800


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org