Skip to content

Commit

Permalink
Update modelplots.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Dec 27, 2022
1 parent 8575661 commit af1ad33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pastas/modelplots.py
Expand Up @@ -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__)

Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit af1ad33

Please sign in to comment.