From 66627d8a6609b530a0e85b309fa3264783da36a0 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Tue, 31 Aug 2021 22:52:14 +0200 Subject: [PATCH] Options: match Toggle's get_option_name signature to Choice's --- Options.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Options.py b/Options.py index af7d048f..fbb19d88 100644 --- a/Options.py +++ b/Options.py @@ -115,7 +115,8 @@ class Toggle(Option): def __int__(self): return int(self.value) - def get_option_name(self, value): + @classmethod + def get_option_name(cls, value): return ["No", "Yes"][int(value)] class DefaultOnToggle(Toggle):