fix: Make mypy happy

pull/591/head
Raphaël Vinot 2020-05-21 23:03:04 +02:00
parent 515a47a591
commit 3e26d3c807
1 changed files with 2 additions and 2 deletions

View File

@ -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: Optional[float, Tuple[float, float]]=None):
cert: Tuple[str, tuple]=None, auth: AuthBase=None, tool: str='', timeout: Optional[Union[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[float, Tuple[float, float]] = timeout
self.timeout: Optional[Union[float, Tuple[float, float]]] = timeout
self.global_pythonify = False