Merge branch 'feature/mypy_update' into 'master'

handled mypy newer release errors

See merge request cara/caimira!403
This commit is contained in:
Andre Henriques 2022-09-28 16:13:11 +02:00
commit 2730a50d0f

View file

@ -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.