summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorMiles Cranmer <miles.cranmer@gmail.com>2022-06-29 17:49:50 -0400
committerGitHub <noreply@github.com>2022-06-29 14:49:50 -0700
commitf9bed20bffd88bce06dbc8be200179edfe7580a4 (patch)
tree811c7302e39860f5731f315882f09631ff9b550e /numpy/array_api/_array_object.py
parent10f0e0ad0f8b5bbc58cbc45623cc7f4f80eaba3b (diff)
downloadnumpy-f9bed20bffd88bce06dbc8be200179edfe7580a4.tar.gz
BUG: Fix numpy.isin for timedelta dtype (#21860)
This PR fixes the issue discussed on #12065 and #21843 where 'timedelta64' was noted to be a subtype of numpy.integer. This in principle should detect any cases where int(np.min(ar2)) fails. This PR also adds unittests for these. * TST: Create in1d test for timedelta input * MAINT: fix in1d for timedelta input * TST: in1d raise ValueError for timedelta input * MAINT: Clean up type checking for isin kind="table" * TST: Add test for mixed boolean/integer in1d * MAINT: Increase readability of in1d type checking * STY: Apply small code style tweaks This is probably really mainly my personal opinion... Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions