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



##########
File path: airflow/operators/python.py
##########
@@ -276,6 +280,17 @@ 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 is_container(ttype)
+        ):

Review comment:
       Nah that's just left over noise, originally had complex check before I 
found the is_container func existed. I'll clean it up




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