From f3b3f4c13c6912d1e3050867875d0bca08d225ec Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Thu, 21 May 2020 21:52:42 +0200 Subject: [PATCH] fix: fixes bug in timeout change --- pymisp/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymisp/api.py b/pymisp/api.py index b186634..e1b7896 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -92,7 +92,7 @@ class PyMISP: """ def __init__(self, url: str, key: str, ssl: bool=True, debug: bool=False, proxies: Mapping={}, - cert: Tuple[str, tuple]=None, auth: AuthBase=None, tool: str='', timeout: Union[float, Tuple[float, float], None]=None): + cert: Tuple[str, tuple]=None, auth: AuthBase=None, tool: str='', timeout: Optional[float, Tuple[float, float]]=None): if not url: raise NoURL('Please provide the URL of your MISP instance.') if not key: @@ -105,7 +105,7 @@ class PyMISP: self.cert: Optional[Tuple[str, tuple]] = cert self.auth: Optional[AuthBase] = auth self.tool: str = tool - self.timeout: Optional[Union[float, Tuple[float, float], None]] = timeout + self.timeout: Optional[float, Tuple[float, float]]] = timeout self.global_pythonify = False