Fix utils.Check args
type hinting
This commit is contained in:
parent
f614d1fc14
commit
e0d99fe8b1
1 changed files with 2 additions and 2 deletions
|
@ -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"):
|
||||||
|
|
Loading…
Reference in a new issue