dabla commented on code in PR #62922:
URL: https://github.com/apache/airflow/pull/62922#discussion_r2898150406
##########
task-sdk/src/airflow/sdk/definitions/_internal/expandinput.py:
##########
@@ -184,7 +228,22 @@ def iter_references(self) -> Iterable[tuple[Operator,
str]]:
if isinstance(x, XComArg):
yield from x.iter_references()
- def resolve(self, context: Mapping[str, Any]) -> tuple[Mapping[str, Any],
set[int]]:
+ def iter_values(self, context: Context) -> Iterable[Any]:
+ def resolve(value: Any) -> Any:
+ if isinstance(value, XComArg):
+ return value.iter_values(context=context)
+ return value
+
Review Comment:
Solved and added unit tests
--
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]