Skip to content

Fix NumPy 2.0 rule for np.alltrue and np.sometrue#12473

Merged
MichaReiser merged 3 commits intoastral-sh:mainfrom
mtsokol:sometrue-alltrue-fix
Jul 23, 2024
Merged

Fix NumPy 2.0 rule for np.alltrue and np.sometrue#12473
MichaReiser merged 3 commits intoastral-sh:mainfrom
mtsokol:sometrue-alltrue-fix

Conversation

@mtsokol
Copy link
Contributor

@mtsokol mtsokol commented Jul 23, 2024

Fixes: #12416

Also to be fixed in NumPy: numpy/numpy#27015

@MichaReiser MichaReiser added the rule Implementing or modifying a lint rule label Jul 23, 2024
@mtsokol
Copy link
Contributor Author

mtsokol commented Jul 23, 2024

There was a typo in anytrue name (should be sometrue). I will adjust the snap file.

@MichaReiser
Copy link
Member

Thanks

@MichaReiser MichaReiser enabled auto-merge (squash) July 23, 2024 08:31
@MichaReiser MichaReiser merged commit f96a3c7 into astral-sh:main Jul 23, 2024
@mtsokol mtsokol deleted the sometrue-alltrue-fix branch July 23, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPY201: replacing sometrue/alltrue with any/all results in broken code

2 participants