summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <bas.vanbeek@hotmail.com>2023-05-08 16:04:09 +0200
committerBas van Beek <bas.vanbeek@hotmail.com>2023-05-08 16:10:08 +0200
commitba4e0688ee265c782f4e1cffe06968b6e9cec5cf (patch)
treee8d1d4bc066081fdf71de090b5f9ad114df95d2f
parentc6fdee0c67e90b154a8ff1172fb6d42acc53d218 (diff)
downloadnumpy-ba4e0688ee265c782f4e1cffe06968b6e9cec5cf.tar.gz
TYP: Deprecate `np.round_`
xref https://github.com/numpy/numpy/pull/23302
-rw-r--r--numpy/__init__.pyi1
-rw-r--r--numpy/ma/__init__.pyi1
-rw-r--r--numpy/ma/core.pyi3
3 files changed, 1 insertions, 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