summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index e073128dd..a28ecdd19 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -1335,7 +1335,7 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None):
if arr.flags.maskna:
lst += ", maskna=True"
# If everything is NA, can't skip the type
- if np.all(np.isna(arr)):
+ if skiptype and np.all(np.isna(arr)):
skiptype = False
if skiptype: