Skip to content

Commit

Permalink
🐛 Fix mypy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneahmed committed Nov 21, 2024
1 parent 0812fc7 commit f68a29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiatoolbox/utils/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def to_int_tuple(x: tuple[int, ...] | np.ndarray) -> tuple[int, ...]:
return canvas


def _find_minimum_mpp_sf(mpp: tuple[float, float]) -> float:
def _find_minimum_mpp_sf(mpp: tuple[float, float] | None) -> float:
"""Calculates minimum mpp scale factor."""
if mpp is not None:
return np.minimum(mpp[0] / 0.25, 1)
Expand Down

0 comments on commit f68a29f

Please sign in to comment.