You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/12 16:16:57 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #23672: Add wildcard possibility to `package-filter` parametere

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org