No coverage for `__imatmul__` (`@=`)

Open Beginner friendly
#465 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
87/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Start by reading the existing test_iop coverage and test_linalg.py, then check how array_api_tests exercises operator overloads. Add coverage for the @= operation through imatmul and verify that an implementation raising AttributeError is detected by the test suite.

Written by the indexing model from the issue text.

Description

It looks like __imatmul__ currently lacks test coverage in the suite. A broken implementation (e.g. one raising AttributeError) can pass array_api_tests without triggering any failures.

Checking the codebase:

  • imatmul isn't referenced anywhere under array_api_tests/.
  • test_iop only covers elementwise binary ops, so matmul isn't included.
  • test_linalg.py tests namespace.matmul() directly, but doesn't exercise @ or @=.

Happy to send a PR adding @= coverage if needed!

Dominant language
Python
Stars
74
Forks
54
Avg merge
4d 15h
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

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-tests

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

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.