Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mmabrouk committed May 30, 2024
1 parent 16c5f1c commit b2a8ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agenta-cli/agenta/sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class GroupedMultipleChoiceParam(str):
def __new__(cls, default: str = None, choices: Dict[str, List[str]] = None):
if choices is None:
choices = {}
if default and not any(default in choice_list for choice_list in choices.values()):
if default and not any(
default in choice_list for choice_list in choices.values()
):
if not choices:
print(
f"Warning: Default value {default} provided but choices are empty."
Expand Down

0 comments on commit b2a8ee9

Please sign in to comment.