The bool_ data type is very similar to the Python bool but does not inherit from it because Python’s bool does not allow itself to be inherited from, and on the C-level the size of the actual bool data is not the same as a Python Boolean scalar.
and likewise:
The int_ type does not inherit from the int built-in under Python 3, because type int is no longer a fixed-width integer type.
From numpy’s docs:
and likewise: