From 810c3384e4a93d95ffa66f6ee8d2adc4fa0a3ffc Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Wed, 28 Sep 2022 11:36:38 +0200 Subject: [PATCH] handled mypy newer release errors --- caimira/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caimira/models.py b/caimira/models.py index d01e5c3f..0e6fec4c 100644 --- a/caimira/models.py +++ b/caimira/models.py @@ -1197,7 +1197,7 @@ class ShortRangeModel: return self._normed_concentration(concentration_model, time) @method_cache - def extract_between_bounds(self, time1: float, time2: float) -> typing.Tuple[float,float]: + def extract_between_bounds(self, time1: float, time2: float) -> typing.Union[None, typing.Tuple[float,float]]: """ Extract the bounds of the interval resulting from the intersection of [time1, time2] and the presence interval.