Hmm, issubdtype would be better.
```
if issubdtype(dtype, np.integer) or issubdtype(dtype, np.bool):
```
If you want to modify `issubdtype` to take a tuple second argument I won't complain ;)