def convert(self, value: str, param: Optional[click.core.Parameter], ctx: Optional[click.core.Context]) -> List[Enum]:
    items = [item for item in value.split(',') if item]
    invalid_options = (set(items) - set(self.choices))
    if ((not invalid_options) and items):
        return [self.enum[item] for item in items]
    sorted_options = ', '.join(sorted(invalid_options, key=items.index))
    available_options = ', '.join(self.choices)
    self.fail(f'invalid choice(s): {sorted_options}. Choose from {available_options}')
def convert(self, value: str, param: Optional[click.core.Parameter], ctx: Optional[click.core.Context]) -> List[Enum]:
    items = [item for item in value.split(',') if item]
    invalid_options = (set(items) - set(self.choices))
    if ((not invalid_options) and items):
        return [self.enum[item] for item in items]
    sorted_options = ', '.join(sorted(invalid_options, key=items.index))
    available_options = ', '.join(self.choices)
    self.fail(f'invalid choice(s): {sorted_options}. Choose from {available_options}')