diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-16 14:13:21 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-17 18:40:44 +0100 |
commit | 3f00488871ac169b1fd2f40495ad85cb581cc02b (patch) | |
tree | 1db9682e7cc176a2dff5bc4fa4420e8bb756c713 /numpy/core/fromnumeric.py | |
parent | 723b5acdb370d9a73deaf6c84f67ca0bc4464835 (diff) | |
download | numpy-3f00488871ac169b1fd2f40495ad85cb581cc02b.tar.gz |
MAINT: Fix stacklevels for the new C dispatcher not adding one
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index ca9d55cb7..e7366898e 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2313,7 +2313,7 @@ def sum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue, warnings.warn( "Calling np.sum(generator) is deprecated, and in the future will give a different result. " "Use np.sum(np.fromiter(generator)) or the python sum builtin instead.", - DeprecationWarning, stacklevel=3) + DeprecationWarning, stacklevel=2) res = _sum_(a) if out is not None: |