uranusjr commented on code in PR #30271:
URL: https://github.com/apache/airflow/pull/30271#discussion_r1233675483
##########
airflow/models/abstractoperator.py:
##########
@@ -188,6 +188,33 @@ def get_flat_relatives(self, upstream: bool = False) ->
Collection[Operator]:
return set()
return [dag.task_dict[task_id] for task_id in
self.get_flat_relative_ids(upstream=upstream)]
+ def get_upstreams_follow_setups(self) -> Iterable[Operator]:
+ """All upstreams and, for each upstream setup, its respective
teardowns."""
Review Comment:
I think Python mostly just assumes users are responsible and shouldn’t use
any undocumented things by default (and Sphinx’s behaviour is good in that
regard). Sure modern IDEs make the line more blurry but IMO we just need to
maintain the traditional “private until documented” approach.
--
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]