From ba4e0688ee265c782f4e1cffe06968b6e9cec5cf Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Mon, 8 May 2023 16:04:09 +0200 Subject: TYP: Deprecate `np.round_` xref https://github.com/numpy/numpy/pull/23302 --- numpy/__init__.pyi | 1 - numpy/ma/__init__.pyi | 1 - numpy/ma/core.pyi | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index c7807e3ed..0cc768e22 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -675,7 +675,6 @@ test: PytestTester # Placeholders for classes # Some of these are aliases; others are wrappers with an identical signature -round_ = around product = prod cumproduct = cumprod sometrue = any diff --git a/numpy/ma/__init__.pyi b/numpy/ma/__init__.pyi index 7f5cb56a8..ce72383e5 100644 --- a/numpy/ma/__init__.pyi +++ b/numpy/ma/__init__.pyi @@ -155,7 +155,6 @@ from numpy.ma.core import ( resize as resize, right_shift as right_shift, round as round, - round_ as round_, set_fill_value as set_fill_value, shape as shape, sin as sin, diff --git a/numpy/ma/core.pyi b/numpy/ma/core.pyi index 15f37c422..e94ebce3c 100644 --- a/numpy/ma/core.pyi +++ b/numpy/ma/core.pyi @@ -435,8 +435,7 @@ def size(obj, axis=...): ... def diff(a, /, n=..., axis=..., prepend=..., append=...): ... def where(condition, x=..., y=...): ... def choose(indices, choices, out=..., mode=...): ... -def round_(a, decimals=..., out=...): ... -round = round_ +def round(a, decimals=..., out=...): ... def inner(a, b): ... innerproduct = inner -- cgit v1.2.1