turbaszek commented on a change in pull request #10349:
URL: https://github.com/apache/airflow/pull/10349#discussion_r471062528



##########
File path: airflow/operators/python.py
##########
@@ -276,6 +276,16 @@ def task(
     :type multiple_outputs: bool
 
     """
+
+    if python_callable:
+        sig = signature(python_callable).return_annotation
+        ttype = getattr(sig, "__origin__", None)
+        if (
+            sig != inspect.Signature.empty
+            and (ttype in (dict, Dict, tuple, Tuple))

Review comment:
       Should we support also `set`? Probably it would be awesome to support 
any iterable... WDYT? @casassg @evgenyshulman @jonathanshir 
   




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


Reply via email to