dabla commented on code in PR #48868:
URL: https://github.com/apache/airflow/pull/48868#discussion_r2046150942


##########
task-sdk/src/airflow/sdk/definitions/xcom_arg.py:
##########
@@ -382,21 +393,74 @@ def _get_callable_name(f: Callable | str) -> str:
     return "<function>"
 
 
-class _MapResult(Sequence):
-    def __init__(self, value: Sequence | dict, callables: MapCallables) -> 
None:
-        self.value = value
+class CallableResultMixin(Generic[T], Sequence, metaclass=ABCMeta):
+    def __init__(self, value: T, callables: MapCallables) -> None:
+        self.value = list(value.items()) if isinstance(value, dict) else value

Review Comment:
   Thx @uranusjr you're absolutely right, good catch, changed it.



-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to