mirror of https://github.com/astral-sh/ruff
Hi! This PR addresses https://github.com/astral-sh/ruff/issues/11093. It skips `np.bool` and `np.long` replacements as both of these names were reintroduced in NumPy 2.0 with a different meaning (https://github.com/numpy/numpy/pull/24922, https://github.com/numpy/numpy/pull/25080). With this change `NPY001` will no longer conflict with `NPY201`. For projects using NumPy 1.x `np.bool` and `np.long` has been deprecated and removed long time ago, and accessing them yields an informative error message. |
||
|---|---|---|
| .. | ||
| NPY001.py | ||
| NPY002.py | ||
| NPY003.py | ||
| NPY201.py | ||