From 12f8fd85300e5ce71ee1d9e3287bafb600e2a4af Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Thu, 21 May 2020 21:49:25 +0200 Subject: [PATCH] fix: fixes bug in timeout change --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index d0a7d1c..b186634 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -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], None] = timeout + self.timeout: Optional[Union[float, Tuple[float, float], None]] = timeout self.global_pythonify = False