NPY001 should not replace np.bool
by bool
(at least in type hints)
#11093
Labels
needs-info
More information is needed from the issue author
bug.py
For
mypy
v1.9.0, onlynp.bool
is acceptable:However,
NPY001
does not like that solution:--fix
givesKeywords: numpy 2, deprecation, bool, bool_
ruff 0.4.1
mypy 1.9.0
numpy 2.0.0rc1
The text was updated successfully, but these errors were encountered: