potiuk commented on code in PR #23672:
URL: https://github.com/apache/airflow/pull/23672#discussion_r871577412
##########
dev/breeze/src/airflow_breeze/utils/custom_param_types.py:
##########
@@ -59,6 +60,43 @@ def get_metavar(self, param) -> str:
return f"[{choices_str}]"
+class NotVerifiedBetterChoice(BetterChoice):
+ """
+ This parameter allows to pass parameters that do not pass verification by
choice. This is
+ useful to keep autocomplete working but also to allow some extra
parameters that are dynamic,
+ for example allowing glob in package names for docs building.
+ """
+
+ name = "NotVerifiedBetterChoice"
+
+ def __init__(self, *args):
+ super().__init__(*args)
+ self.all_choices: Sequence[str] = self.choices
Review Comment:
Ah Right - copied too much
--
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]