cupy needs a fix for `isin` with scalar arguments

Open Beginner friendly
#395 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
data

Research direction

Start with array_api_tests/test_set_functions.py::TestIsin::test_isin_scalars and reproduce the failure with the CuPy compatibility backend. Read the existing cp.searchsorted compatibility path, then determine whether this case needs a shim or an expected-failure marker. Done means the targeted test has an explicit, passing outcome.

Written by the indexing model from the issue text.

Description

array_api_tests/test_set_functions.py::TestIsin::test_isin_scalars is failing with array_api_compat.cupy. Needs to either follow cp.searchsorted and add a shim, or xfail the test.

Dominant language
Python
Stars
131
Forks
49
Avg merge
2d 8h
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from data-apis/array-api-compat

All issues in data-apis/array-api-compat

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.