From 4373fe5e997ca38347f04983fa7d0306bd337c08 Mon Sep 17 00:00:00 2001 From: Martin Vonk Date: Mon, 25 Sep 2023 19:19:54 +0200 Subject: [PATCH] fix type hinting axes --- src/spei/_typing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spei/_typing.py b/src/spei/_typing.py index 11dbf17..eb16994 100644 --- a/src/spei/_typing.py +++ b/src/spei/_typing.py @@ -1,12 +1,12 @@ # flake8: noqa from typing import Any, Union, TypeVar -# from matplotlib.axes import Axes -from numpy import float64, generic +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[generic, Any]) -NDArrayAxes = NDArray[Axes] +Axes = TypeVar("Axes", bound=Union[mplAxes, Any]) +NDArrayAxes = NDArray[Any] NDArrayFloat = NDArray[float64]