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


##########
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:
   Hmm, OK. I thought since this class is subclassed by public ones (e.g. 
BaseOperator), this would have shown up there if the function is not also 
marked. But I just checked and it’s not the case (for example 
`get_flat_relatives` is not available in docs), so you’re right a mark is not 
needed.



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