From a57bfa514e080433e95444416a8b09c9de0f45aa Mon Sep 17 00:00:00 2001 From: Martin Vonk Date: Mon, 25 Sep 2023 19:34:39 +0200 Subject: [PATCH] update type hint for axes --- src/spei/_typing.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/spei/_typing.py b/src/spei/_typing.py index 195a174..8d7d15c 100644 --- a/src/spei/_typing.py +++ b/src/spei/_typing.py @@ -1,12 +1,11 @@ # flake8: noqa -from typing import Any, TypeVar, Union +from typing import Any, Union -from matplotlib.axes import Axes as mplAxes from numpy import float64 from numpy.typing import NDArray from scipy.stats._continuous_distns import rv_continuous ContinuousDist = Union[Any, rv_continuous] -Axes = TypeVar("Axes", bound=Union[mplAxes, Any]) -NDArrayAxes = NDArray[Any] +Axes = Any +NDArrayAxes = NDArray[Axes] NDArrayFloat = NDArray[float64]