Skip to content

Conversation

@34j
Copy link
Owner

@34j 34j commented Dec 11, 2025

Description of change

Pull-Request Checklist

  • Code is up-to-date with the main branch
  • This pull request follows the contributing guidelines.
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions outlined in the conventional commit spec, such as "fix(api): prevent racing of requests".
  • If pre-commit.ci is failing, try pre-commit run -a for further information.
  • If CI / test is failing, try uv run pytest for further information.

Copilot AI review requested due to automatic review settings December 11, 2025 09:19
@34j 34j changed the title feat: add "latest" attribute feat: add latest attribute Dec 11, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a latest module alias that points to the most recent array API version (_2024_12), allowing users to import from array_api.latest instead of version-specific modules like array_api._2024_12. This provides a convenient way to use the most current API without needing to update import statements when new versions are released.

Key changes:

  • Added latest module alias in src/array_api/__init__.py pointing to _2024_12
  • Updated all documentation examples to use array_api.latest instead of version-specific imports
  • Enhanced sphinx documentation configuration with --separate flag for better module documentation organization

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/array_api/__init__.py Adds latest as a module alias for _2024_12 and exports it in __all__
tests/test_main.py Updates test imports to use array_api.latest instead of array_api._2024_12
src/array_api_compat/__init__.pyi Updates type stub imports to use array_api.latest
README.md Updates all code examples to demonstrate the new latest import pattern
docs/conf.py Adds --separate flag to sphinx-apidoc for generating separate documentation files per module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.01%. Comparing base (07c726f) to head (241d8ad).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #161      +/-   ##
==========================================
+ Coverage   21.00%   21.01%   +0.01%     
==========================================
  Files           9       10       +1     
  Lines        4890     4891       +1     
  Branches      709      709              
==========================================
+ Hits         1027     1028       +1     
  Misses       3690     3690              
  Partials      173      173              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@34j 34j merged commit 2a0f531 into main Dec 11, 2025
12 of 13 checks passed
@34j 34j deleted the fix/add-latest branch December 11, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants