diff options
author | Frederic Bastien <nouiz@nouiz.org> | 2016-11-03 13:37:16 -0400 |
---|---|---|
committer | Frederic Bastien <nouiz@nouiz.org> | 2016-11-03 13:37:16 -0400 |
commit | f7378efe8884cf4d79cee1d880f1daf9420bd649 (patch) | |
tree | 5b8d22b677b3fc6b9c52cf9a7994ba4f57d01e51 /numpy/core/_methods.py | |
parent | e1e76fefbd5a41ae14308a43245b4ecdf3099252 (diff) | |
download | numpy-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.py | 2 |
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: |