Skip to content

Commit

Permalink
fix type hinting axes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Sep 25, 2023
1 parent dfea975 commit 4373fe5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spei/_typing.py
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 4373fe5

Please sign in to comment.