forked from LBRYCommunity/lbry-sdk
pylint
This commit is contained in:
parent
d8630a02d9
commit
6651111522
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,10 @@ class MaxKeyFee(Setting[dict]):
|
|||
|
||||
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):
|
||||
parser.add_argument(
|
||||
self.cli_name,
|
||||
|
|
Loading…
Reference in a new issue