mirror of https://github.com/devine-dl/devine.git
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:
parent
423ff289db
commit
eeccdc37cf
|
@ -157,7 +157,7 @@ class MultipleChoice(click.Choice):
|
|||
|
||||
chosen_values: list[Any] = []
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue