diff --git a/broadbean/plotting.py b/broadbean/plotting.py index 0ebed6900..e6bb80e20 100644 --- a/broadbean/plotting.py +++ b/broadbean/plotting.py @@ -25,8 +25,7 @@ def getSIScalingAndPrefix(minmax: tuple[float, float]) -> tuple[float, str]: string. """ - # due to https://github.com/python/mypy/issues/6697 - v_max: float = max(map(abs, minmax)) # type: ignore[arg-type, type-var, assignment] + v_max: float = max(map(abs, minmax)) if v_max == 0: v_max = 1 exponent = np.log10(v_max) diff --git a/requirements.txt b/requirements.txt index 2eb050e31..a2f239f81 100644 --- a/requirements.txt +++ b/requirements.txt @@ -52,7 +52,7 @@ matplotlib~=3.8.0 matplotlib-inline~=0.1.6 mistune~=3.0.1 numpy~=1.26.0 -mypy~=1.6.0 +mypy~=1.7.0 mypy-extensions~=1.0.0 nbclient~=0.8.0 nbsphinx==0.9.1