diff options
| author | BvB93 <43369155+BvB93@users.noreply.github.com> | 2022-11-14 17:47:04 +0100 |
|---|---|---|
| committer | BvB93 <43369155+BvB93@users.noreply.github.com> | 2022-11-14 17:47:04 +0100 |
| commit | b780d8b537842a892c62aa36228cd72b26994773 (patch) | |
| tree | dfed61c241e9ca83bd6b5639d3cab5c89dc65525 /numpy | |
| parent | 6df49a353e01fd0382947bdf994c010342ab2c34 (diff) | |
| download | numpy-b780d8b537842a892c62aa36228cd72b26994773.tar.gz | |
TYP,DEP: Remove `msort` annotations
Xref https://github.com/numpy/numpy/pull/22456
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/lib/function_base.pyi | 8 | ||||
| -rw-r--r-- | numpy/typing/tests/data/reveal/lib_function_base.pyi | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/numpy/lib/function_base.pyi b/numpy/lib/function_base.pyi index c14a54c60..687e4ab17 100644 --- a/numpy/lib/function_base.pyi +++ b/numpy/lib/function_base.pyi @@ -441,12 +441,8 @@ def sinc(x: _ArrayLikeFloat_co) -> NDArray[floating[Any]]: ... @overload def sinc(x: _ArrayLikeComplex_co) -> NDArray[complexfloating[Any, Any]]: ... -@overload -def msort(a: _ArrayType) -> _ArrayType: ... -@overload -def msort(a: _ArrayLike[_SCT]) -> NDArray[_SCT]: ... -@overload -def msort(a: ArrayLike) -> NDArray[Any]: ... +# NOTE: Deprecated +# def msort(a: ArrayLike) -> NDArray[Any]: ... @overload def median( diff --git a/numpy/typing/tests/data/reveal/lib_function_base.pyi b/numpy/typing/tests/data/reveal/lib_function_base.pyi index 259e1964f..a8b9b01ac 100644 --- a/numpy/typing/tests/data/reveal/lib_function_base.pyi +++ b/numpy/typing/tests/data/reveal/lib_function_base.pyi @@ -123,10 +123,6 @@ reveal_type(np.sinc(1j)) # E: complexfloating[Any, Any] reveal_type(np.sinc(AR_f8)) # E: ndarray[Any, dtype[floating[Any]]] reveal_type(np.sinc(AR_c16)) # E: ndarray[Any, dtype[complexfloating[Any, Any]]] -reveal_type(np.msort(CHAR_AR_U)) # E: Any -reveal_type(np.msort(AR_U)) # E: ndarray[Any, dtype[str_]] -reveal_type(np.msort(AR_LIKE_f8)) # E: ndarray[Any, dtype[Any]] - reveal_type(np.median(AR_f8, keepdims=False)) # E: floating[Any] reveal_type(np.median(AR_c16, overwrite_input=True)) # E: complexfloating[Any, Any] reveal_type(np.median(AR_m)) # E: timedelta64 |
