diff --git a/agenta-cli/agenta/sdk/types.py b/agenta-cli/agenta/sdk/types.py index 497cbdec39..a133d785f7 100644 --- a/agenta-cli/agenta/sdk/types.py +++ b/agenta-cli/agenta/sdk/types.py @@ -131,8 +131,7 @@ 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 choices for choices 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."