From f7378efe8884cf4d79cee1d880f1daf9420bd649 Mon Sep 17 00:00:00 2001 From: Frederic Bastien Date: Thu, 3 Nov 2016 13:37:16 -0400 Subject: Keep the subclass and update the docstring per the comment. --- numpy/core/_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/_methods.py') 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: -- cgit v1.2.1