uranusjr commented on code in PR #27826:
URL: https://github.com/apache/airflow/pull/27826#discussion_r1030104306


##########
airflow/decorators/base.py:
##########
@@ -300,6 +300,10 @@ def _infer_multiple_outputs(self):
         except TypeError:  # Can't evaluate return type.
             return False
         ttype = getattr(return_type, "__origin__", return_type)
+        if ttype == dict or ttype == Dict:
+            raise AttributeError(
+                "multiple_outputs was not set and will not implicitly unroll 
dict for return values"
+            )

Review Comment:
   I wonder if the new DagWarning mechanism is even better for this. It would 
still allow the DAG to parse (i.e. not breaking people’s existing setups) but 
instruct the user to fix things.



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