diff options
Diffstat (limited to 'numpy/lib/function_base.pyi')
-rw-r--r-- | numpy/lib/function_base.pyi | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/numpy/lib/function_base.pyi b/numpy/lib/function_base.pyi index 9a53b24f2..7e227f9da 100644 --- a/numpy/lib/function_base.pyi +++ b/numpy/lib/function_base.pyi @@ -500,12 +500,20 @@ def median( keepdims: bool = ..., ) -> _ArrayType: ... -_InterpolationKind = L[ +_MethodKind = L[ + "inverted_cdf", + "averaged_inverted_cdf", + "closest_observation", + "interpolated_inverted_cdf", + "hazen", + "weibull", + "linear", + "median_unbiased", + "normal_unbiased", "lower", "higher", "midpoint", "nearest", - "linear", ] @overload @@ -515,7 +523,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> floating[Any]: ... @overload @@ -525,7 +533,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> complexfloating[Any, Any]: ... @overload @@ -535,7 +543,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> timedelta64: ... @overload @@ -545,7 +553,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> datetime64: ... @overload @@ -555,7 +563,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> Any: ... @overload @@ -565,7 +573,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> NDArray[floating[Any]]: ... @overload @@ -575,7 +583,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> NDArray[complexfloating[Any, Any]]: ... @overload @@ -585,7 +593,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> NDArray[timedelta64]: ... @overload @@ -595,7 +603,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> NDArray[datetime64]: ... @overload @@ -605,7 +613,7 @@ def percentile( axis: None = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: L[False] = ..., ) -> NDArray[object_]: ... @overload @@ -615,7 +623,7 @@ def percentile( axis: None | _ShapeLike = ..., out: None = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: bool = ..., ) -> Any: ... @overload @@ -625,7 +633,7 @@ def percentile( axis: None | _ShapeLike = ..., out: _ArrayType = ..., overwrite_input: bool = ..., - interpolation: _InterpolationKind = ..., + method: _MethodKind = ..., keepdims: bool = ..., ) -> _ArrayType: ... |