fix(MultipleChoice): Simplify super() call and value types

It was using the wrong instance, leaving the convert() method to seemingly default to str() for the returned chosen value types (or something, I don't really see why this works).
This commit is contained in:
rlaphoenix 2024-03-08 17:09:20 +00:00
parent 423ff289db
commit eeccdc37cf
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class MultipleChoice(click.Choice):
chosen_values: list[Any] = [] chosen_values: list[Any] = []
for value in values: for value in values:
chosen_values.append(super(click.Choice, self).convert(value, param, ctx)) chosen_values.append(super().convert(value, param, ctx))
return chosen_values return chosen_values