aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-14 12:12:38 +0100
committerGravatar jesopo2019-06-14 12:12:38 +0100
commite0d99fe8b1fcca88e404824f6dbf4dfd0b3234ad (patch)
tree5ddc7c8a32f1081a3c94288c44d672fed9b34432
parentadd `self` check.command, change !config to use new yields (diff)
signature
Fix utils.Check `args` type hinting
-rw-r--r--src/utils/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index c0acee4d..e159bbca 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -190,9 +190,9 @@ class MultiCheck(object):
requests: typing.List[typing.Tuple[str, typing.List[str]]]):
self.requests = requests
class Check(object):
- def __init__(self, request: str, *args: typing.List[str]):
+ def __init__(self, request: str, *args: str):
self.request = request
- self.args = args
+ self.args = list(args)
def to_multi(self):
return MultiCheck([(self.request, self.args)])
def __or__(self, other: "Check"):