Skip to content

Conversation

paddyroddy
Copy link
Member

@paddyroddy paddyroddy commented Jul 8, 2025

Description

A recent change (see #629) is causing the tests to fail. Following this suggestion idea data-apis/array-api-extra#343 (comment) and not wanting to drop Python<3.12 this is a compromise.

Checks

  • Is your code passing linting?
  • Is your code passing tests?
  • Have you added additional tests (if required)?
  • Have you modified/extended the documentation (if required)?
  • Have you added a one-liner changelog entry above (if required)?

@paddyroddy paddyroddy self-assigned this Jul 8, 2025
@paddyroddy paddyroddy added bug Something isn't working dependencies Pull requests that update a dependency file array-api Work is related to the Array API labels Jul 8, 2025
@paddyroddy paddyroddy marked this pull request as ready for review July 8, 2025 13:04
pyproject.toml Outdated
@@ -60,7 +60,7 @@ examples = [
"matplotlib",
]
test = [
"array_api_strict>=2",
"array_api_strict<2.4",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not want to keep the >=2 if there was a reason to have it? If not then good to go from me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If someone were to install it, then it would install 2.3.1. @Saransh-cpp you implemented that bound. Do you feel strongly?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I just realised why I did this. We use the api_version flag to adhere to a specific array API version -

array_api_strict.set_array_api_strict_flags(api_version="2024.12")

and this flag was introduced in 2.0.0, so yes, we should keep >=2.

@paddyroddy paddyroddy merged commit 6fffbd2 into main Jul 8, 2025
15 checks passed
@paddyroddy paddyroddy deleted the fix-array-api-strict branch July 8, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
array-api Work is related to the Array API bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants