-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove found_descendents param from get_flat_relative_ids #31559
Remove found_descendents param from get_flat_relative_ids #31559
Conversation
By the looks of it, this param is unused. Since the class is designated private, it is permissable to remove it.
def get_flat_relative_ids( | ||
self, | ||
upstream: bool = False, | ||
found_descendants: set[str] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this param here
if found_descendants is None: | ||
found_descendants = set() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thus no longer need this conditional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is technically breaking backward compatibility (the user can technically access this function is DAGs) but I’m willing to take the chance and assume no-one is actually using it.
@uranusjr but then what does |
Yes. I think :meta private: works as designed. https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html Adding the page was one of the reasons to make such decisions quiickly
That technicall means it's not part of the public interface and we are free to change it. |
By the looks of it, this param is unused. Since the class is designated private, it is permissable to remove it. (cherry picked from commit 0cbc0dc)
By the looks of it, this param is unused. Since the class is designated private, it is permissable to remove it. (cherry picked from commit 0cbc0dc)
By the looks of it, this param is unused. Since the class is designated private, it is permissable to remove it.