From 8e14d1af5bf1139c55e202b42a9ba78954c339c2 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Fri, 10 Jun 2022 15:52:34 -0400 Subject: MAINT: Fix error message --- numpy/lib/arraysetops.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/lib/arraysetops.py') diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 44bdd0546..53a2b6e02 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -667,7 +667,8 @@ def in1d(ar1, ar2, assume_unique=False, invert=False, method='auto'): return outgoing_array elif method == 'dictionary': raise ValueError( - "'dictionary' method is only supported for non-integer arrays. " + "'dictionary' method is only " + "supported for boolean or integer arrays. " "Please select 'sort' or 'auto' for the method." ) -- cgit v1.2.1