Closed
Description
Since NumPy 1.20.0, np.bool
is deprecated (together with np.int
and np.float
). We'd like to keep np.bool
though, because it's a better name than np.bool_
and is unambiguous.
There was a long email thread on this topic: https://mail.python.org/archives/list/[email protected]/thread/NZWX22G5L7I5LOMKQ7HIRECUZXV6NA34/#NZWX22G5L7I5LOMKQ7HIRECUZXV6NA34. The approach @seberg suggested there was:
- Go ahead for now (deprecate)
- Add a FutureWarning at some point that we will start to export
np.bool
again (butfrom numpy import *
is a problem?) - Aim to make
np.bool is np.bool_
at some point in the (far) future.
np.bool
has now been deprecated for four releases, so it's time to take the next step in the next release (1.24.0).