This commit is contained in:
Lex Berezhny 2019-06-04 16:52:54 -04:00
parent d8630a02d9
commit 6651111522

View file

@ -194,6 +194,10 @@ class MaxKeyFee(Setting[dict]):
class ListSetting(Setting[list]): class ListSetting(Setting[list]):
def validate(self, val):
assert isinstance(val, (tuple, list)), \
f"Setting '{self.name}' must be a tuple or list."
def contribute_to_argparse(self, parser: ArgumentParser): def contribute_to_argparse(self, parser: ArgumentParser):
parser.add_argument( parser.add_argument(
self.cli_name, self.cli_name,