From ffe76ac8df65c8e7831df9924a782276e060f3e6 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Thu, 30 Apr 2020 19:50:21 -0500 Subject: MAINT: Unify casting error creation (outside the iterator) --- numpy/doc/structured_arrays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/doc/structured_arrays.py') diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py index 72990cf89..359d4f7f4 100644 --- a/numpy/doc/structured_arrays.py +++ b/numpy/doc/structured_arrays.py @@ -341,7 +341,7 @@ structured datatype has just a single field:: >>> nostruct[:] = twofield Traceback (most recent call last): ... - TypeError: Cannot cast scalar from dtype([('A', '