Skip to content

Unblock NumPy 2.x #1580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Unblock NumPy 2.x #1580

wants to merge 2 commits into from

Conversation

aywi
Copy link

@aywi aywi commented Jun 10, 2025

Closes #1581

NumPy 2.x has been around for almost a year, and the latest release is 2.3.0. Most Python data science packages have finished migrating (PyTorch since version 2.3.0). According to the NumPy 2.0 migration guide, the following are the major changes in NumPy 2.0:

$ git clone https://github.com/pytorch/captum.git
$ ruff check ./captum/ --select NPY201
All checks passed!

Therefore, it is now safe to unblock NumPy 2.x.

https://numpy.org/devdocs/numpy_2_0_migration_guide.html
```
$ ruff check ./captum/ --select NPY201
All checks passed!
```
@aywi aywi marked this pull request as draft June 11, 2025 00:37
@aywi aywi marked this pull request as ready for review June 11, 2025 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for numpy 2.0+
2 participants