Core: better pretty-print for OptionList when the list is of non-strings

This commit is contained in:
espeon65536 2021-12-01 21:53:52 -06:00 committed by Fabian Dill
parent c10e17d24c
commit 75625b143c
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class OptionList(Option):
return cls.from_text(str(data)) return cls.from_text(str(data))
def get_option_name(self, value): def get_option_name(self, value):
return ", ".join(value) return ", ".join(map(str, value))
def __contains__(self, item): def __contains__(self, item):
return item in self.value return item in self.value