You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: numpy.alltrue is missing in numpy 2 and there is no lint or migration guide mention #26493
numpy.alltrue and maybe other functions are missing, and there's no lint for it
Here it mentions that there should probably be a lint for it. #24306 (comment)
I don't think there's much appetite for a compat package and instead I think we're going to point people to ruff to lint and update their code. If there are cases where it's not straightforward to write code that works the same in both NumPy 1 and 2 we should look closer and see if it's possible to add code in a NumPy 1 bugfix release or in NumPy 2 to ease writing code that works in both versions.
Hi.
We noticed numpy.alltrue was gone, and there's no lint for it. Not sure if there's lints for other missing things... I didn't test for that.
Activity
mattip commentedon May 21, 2024
As mentioned elsewhere by @mtsokol:
np.alltruehad a deprecation message since 1.25 version. I think we need to mention it in the migration guide if it's missing.mtsokol commentedon May 24, 2024
Solved in #26517 and astral-sh/ruff#11528.
illume commentedon May 24, 2024
AWESOME
Add missing functions to NumPy 2.0 migration rule (#11528)
mtsokol commentedon Jun 4, 2024
Closing as #26517 and astral-sh/ruff#11528 were merged.
Add missing functions to NumPy 2.0 migration rule (#11528)