Skip to content

Commit

Permalink
🩹 stats: fix numpy<2.1 invariant shape-type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 18, 2024
1 parent 8d3b5f3 commit f4c73a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy-stubs/stats/_resampling.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from ._common import ConfidenceInterval

__all__ = ["bootstrap", "monte_carlo_test", "permutation_test"]

_FloatND: TypeAlias = float | np.float64 | onp.ArrayND[np.float64]
_FloatND: TypeAlias = float | np.float64 | onp.Array[Any, np.float64]
_FloatNDT_co = TypeVar("_FloatNDT_co", bound=_FloatND, default=_FloatND, covariant=True)

_BootstrapMethod: TypeAlias = Literal["percentile", "basic", "bca", "BCa"]
Expand Down

0 comments on commit f4c73a4

Please sign in to comment.