turbaszek commented on pull request #10930: URL: https://github.com/apache/airflow/pull/10930#issuecomment-692569969
> I think `get_roots()` and `get_leaves()` will be able to replace all the `isinstance` checks in set_upstream/set_downstream of `XComArg`, `TaskGroup`, `BaseOperator`. I must admit that I didn't get the `get_roots` and `get_leaves` idea fully. However, I implemented the `operator` property that should return `BaseOperator` and I think it serves the same purpose. WDYT @yuqian90 ? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
