Fix utils.Check args type hinting

This commit is contained in:
jesopo 2019-06-14 12:12:38 +01:00
parent f614d1fc14
commit e0d99fe8b1

View file

@ -190,9 +190,9 @@ class MultiCheck(object):
requests: typing.List[typing.Tuple[str, typing.List[str]]]): requests: typing.List[typing.Tuple[str, typing.List[str]]]):
self.requests = requests self.requests = requests
class Check(object): class Check(object):
def __init__(self, request: str, *args: typing.List[str]): def __init__(self, request: str, *args: str):
self.request = request self.request = request
self.args = args self.args = list(args)
def to_multi(self): def to_multi(self):
return MultiCheck([(self.request, self.args)]) return MultiCheck([(self.request, self.args)])
def __or__(self, other: "Check"): def __or__(self, other: "Check"):