Skip to content

Commit

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

0 comments on commit a57bfa5

Please sign in to comment.