From e0d99fe8b1fcca88e404824f6dbf4dfd0b3234ad Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 14 Jun 2019 12:12:38 +0100 Subject: [PATCH] Fix utils.Check `args` type hinting --- src/utils/__init__.py | 4 ++-- 1 file 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"):