vincbeck commented on code in PR #39151:
URL: https://github.com/apache/airflow/pull/39151#discussion_r1576310044
##########
airflow/utils/helpers.py:
##########
@@ -294,6 +294,21 @@ def render_template_as_native(template: jinja2.Template,
context: Context) -> An
return render_template(template, cast(MutableMapping[str, Any], context),
native=True)
+def at_least_one(*args) -> bool:
Review Comment:
Is it really necessary? I would use `any` directly. This function does not
add any value from `any`. It just checks the values of the parameters. But I
guess `any` throws also an exception in such case.
--
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]