josh-fell opened a new pull request #19608:
URL: https://github.com/apache/airflow/pull/19608


   Closes: #19538
   
   There are a few cases in which the existing `multiple_outputs` inference in 
the TaskFlow API doesn't automatically unfurl a returned dictionary into 
separate `XComs`:
   - The return type annotation of the TaskFlow function is the basic `dict` 
type
   - In Python 3.6, the inference fails to set `multiple_outputs` to True due 
to use of an incorrect attr
   
   This PR fixes the inference on a simple `dict` return type annotation and 
adds a condition for Python 3.6 use.
   
   > Since Python 3.6 will reach EOL on 2021-12-23, happy to drop the 
`sys.version_info` check if this fix wouldn't be included in a minor release 
before support for Python 3.6 is dropped.
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to