Then tell us:
- What language is this for? Python
- Which rule? S6730
- Why do you believe it’s a false-positive/false-negative? Because
np.bool
has been added back in numpy 2. - How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
import numpy as np
import numpy.typing as npt
good: npt.NDArray[np.bool] = np.array([True])
Compare