summaryrefslogtreecommitdiff
path: root/numpy/core/_methods.py
diff options
context:
space:
mode:
authorFrederic Bastien <nouiz@nouiz.org>2016-11-03 13:37:16 -0400
committerFrederic Bastien <nouiz@nouiz.org>2016-11-03 13:37:16 -0400
commitf7378efe8884cf4d79cee1d880f1daf9420bd649 (patch)
tree5b8d22b677b3fc6b9c52cf9a7994ba4f57d01e51 /numpy/core/_methods.py
parente1e76fefbd5a41ae14308a43245b4ecdf3099252 (diff)
downloadnumpy-f7378efe8884cf4d79cee1d880f1daf9420bd649.tar.gz
Keep the subclass and update the docstring per the comment.
Diffstat (limited to 'numpy/core/_methods.py')
-rw-r--r--numpy/core/_methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/_methods.py b/numpy/core/_methods.py
index 4fdda242d..abfd0a3cc 100644
--- a/numpy/core/_methods.py
+++ b/numpy/core/_methods.py
@@ -75,7 +75,7 @@ def _mean(a, axis=None, dtype=None, out=None, keepdims=False):
ret = a.dtype.type(ret)
elif hasattr(ret, 'dtype'):
if is_float16_result:
- ret = nt.float16(ret / rcount)
+ ret = a.dtype.type(ret / rcount)
else:
ret = ret.dtype.type(ret / rcount)
else: