diff options
author | stuartarchibald <stuartarchibald@users.noreply.github.com> | 2020-10-05 18:20:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 10:20:21 -0700 |
commit | 225c3360721ba515de88a1e191ede58e8b95593d (patch) | |
tree | b0d051e6ce01d86073d8ac903e785174610e15c4 /numpy/lib/arraysetops.py | |
parent | 9b10c12e9d173d8b67c50e97e6998dbc57a549d4 (diff) | |
download | numpy-225c3360721ba515de88a1e191ede58e8b95593d.tar.gz |
BUG: Fixes incorrect error message in numpy.ediff1d (#17457)
Fixes the error message reported by ediff1d in the case of
an invalid to_begin and updates tests to assert validity.
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 9464692e0..6c6c1ff80 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -93,7 +93,7 @@ def ediff1d(ary, to_end=None, to_begin=None): else: to_begin = np.asanyarray(to_begin) if not np.can_cast(to_begin, dtype_req, casting="same_kind"): - raise TypeError("dtype of `to_end` must be compatible " + raise TypeError("dtype of `to_begin` must be compatible " "with input `ary` under the `same_kind` rule.") to_begin = to_begin.ravel() |