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


##########
task-sdk/src/airflow/sdk/bases/decorator.py:
##########
@@ -516,6 +517,7 @@ def __call__(self, *args: FParams.args, **kwargs: 
FParams.kwargs) -> XComArg:
         op.is_setup = self.is_setup
         op.is_teardown = self.is_teardown
         op.on_failure_fail_dagrun = on_failure_fail_dagrun
+        op.returns_dag_result = self.returns_dag_result

Review Comment:
   Fixed `_expand()`.
   
   The `attrs.evolve()` call in `override()` should automatically set 
`returns_dag_result` so an explicit setattr shouldn’t be needed. I added a test 
to make sure this works.



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