From af1ad33fc7f9883863c08a404a634a33a250efd9 Mon Sep 17 00:00:00 2001 From: Martin Vonk Date: Tue, 27 Dec 2022 15:30:59 +0100 Subject: [PATCH] Update modelplots.py --- pastas/modelplots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pastas/modelplots.py b/pastas/modelplots.py index 5fa344cb1..b6ca016eb 100644 --- a/pastas/modelplots.py +++ b/pastas/modelplots.py @@ -15,7 +15,7 @@ _table_formatter_params, _table_formatter_stderr # Type Hinting -from pastas.typing import Type, Optional, List, pstAx, pstFi, pstTm, pstMl +from pastas.typing import Type, Optional, List, Union, pstAx, pstFi, pstTm, pstMl logger = logging.getLogger(__name__) @@ -853,7 +853,7 @@ def summary_pdf(self, tmin: Optional[pstTm] = None, tmax: Optional[pstTm] = None return fig -def _get_height_ratios(ylims: List[list, tuple]) -> List[float]: +def _get_height_ratios(ylims: List[Union[list, tuple]]) -> List[float]: height_ratios = [] for ylim in ylims: hr = ylim[1] - ylim[0]