Skip to content

Commit

Permalink
fix pyerf -> math typing
Browse files Browse the repository at this point in the history
  • Loading branch information
cgevans committed Feb 2, 2024
1 parent 259fc05 commit 7cf57cd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/scikits/bootstrap/bootstrap.py
Expand Up @@ -2,6 +2,7 @@
It also provides an algorithm which estimates the probability that the statistics
lies satisfies some criteria, e.g. lies in some interval."""

from __future__ import absolute_import, division, print_function, annotations

from math import ceil, sqrt, erf
Expand Down Expand Up @@ -65,7 +66,7 @@


def _ncdf_py(x: float) -> float:
return 0.5 * (1 + cast(float, erf(x / s2)))
return 0.5 * (1 + erf(x / s2))


ncdf = np.vectorize(_ncdf_py, [float])
Expand Down Expand Up @@ -157,8 +158,7 @@ def ci(
return_dist: Literal[True],
seed: SeedType = None,
use_numba: bool = False,
) -> "Tuple[NDArrayAny, NDArrayAny]":
...
) -> "Tuple[NDArrayAny, NDArrayAny]": ...


@overload
Expand All @@ -175,8 +175,7 @@ def ci(
return_dist: Literal[False] = False,
seed: SeedType = None,
use_numba: bool = False,
) -> "NDArrayAny":
...
) -> "NDArrayAny": ...


@overload
Expand All @@ -193,8 +192,7 @@ def ci(
return_dist: Literal[True],
seed: SeedType = None,
use_numba: bool = False,
) -> "Tuple[NDArrayAny, NDArrayAny]":
...
) -> "Tuple[NDArrayAny, NDArrayAny]": ...


@overload
Expand All @@ -210,8 +208,7 @@ def ci(
return_dist: Literal[False] = False,
seed: SeedType = None,
use_numba: bool = False,
) -> "NDArrayAny":
...
) -> "NDArrayAny": ...


def ci(
Expand Down

0 comments on commit 7cf57cd

Please sign in to comment.