dabla commented on code in PR #62922:
URL: https://github.com/apache/airflow/pull/62922#discussion_r4146431258
##########
task-sdk/src/airflow/sdk/bases/decorator.py:
##########
@@ -726,8 +743,69 @@ def _expand(self, expand_input: ExpandInput, *, strict:
bool) -> XComArg:
start_trigger_args=self.operator_class.start_trigger_args,
start_from_trigger=self.operator_class.start_from_trigger,
returns_dag_result=self.returns_dag_result,
+ register_with_dag=register_with_dag,
+ )
+
+ def iterate(self, **map_kwargs: OperatorExpandArgument) -> XComArg:
Review Comment:
Thanks, cf33fc38c0 adds both to the protocol, with a test that every public
method of `_TaskDecorator` is declared on `Task`, so the next one can't be
missed either. Checked with mypy on `get.iterate(url=[...])` and
`get.partial().iterate_kwargs([...])`.
Drafted-by: Claude Opus 5.5; reviewed by @dabla before posting
--
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]