ashb commented on a change in pull request #21505:
URL: https://github.com/apache/airflow/pull/21505#discussion_r804800178
##########
File path: airflow/models/taskmixin.py
##########
@@ -309,4 +311,4 @@ def has_mapped_dependants(self) -> bool:
only contains operators, not task groups. In the future, we should
provide a way to record an DAG node's all downstream nodes instead.
"""
- return any(self.mapped_dependants())
+ return next(self.mapped_dependants(), None) is not None
Review comment:
Why this change? `any()` seems clearer to me than calling `next()`
--
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]