yiga2 commented on a change in pull request #20071:
URL: https://github.com/apache/airflow/pull/20071#discussion_r765049802



##########
File path: airflow/operators/python.py
##########
@@ -248,7 +248,7 @@ def execute(self, context: Dict):
 
         if condition:
             self.log.info('Proceeding with downstream tasks...')
-            return
+            return condition

Review comment:
       e.g. as per @kazanzhy example, an empty list evaluates to `False` while 
a non-empty evaluates to `True` and that list can be used by tasks downstreams. 
This applies to list() and other objects - see many examples online.




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