Skip to content

Commit

Permalink
add nppf annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
cgevans committed Feb 2, 2024
1 parent e13c51c commit 259fc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scikits/bootstrap/bootstrap.py
Expand Up @@ -71,7 +71,7 @@ def _ncdf_py(x: float) -> float:
ncdf = np.vectorize(_ncdf_py, [float])

# fmt: off
def nppf(p):
def nppf(p: Union[float, NDArrayFloat]) -> NDArrayFloat:
p = np.asarray(p)
out = np.empty_like(p, dtype=float)
ix1 = (p < 0.02425) & (p > 0)
Expand Down

0 comments on commit 259fc05

Please sign in to comment.