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]