From eeccdc37cff32e7734eb7a1c5d2357323655553c Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 8 Mar 2024 17:09:20 +0000 Subject: [PATCH] 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). --- devine/core/utils/click_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/utils/click_types.py b/devine/core/utils/click_types.py index 3ae6b57..72b317d 100644 --- a/devine/core/utils/click_types.py +++ b/devine/core/utils/click_types.py @@ -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