The simple fix is to update MNE-Python; version 1.0.3 is almost 2 years old by now. I checked and we no longer have any cases of np.bool
in there.
If you can’t update MNE (e.g. working with a frozen environment / trying to reproduce something) then try downgrading to an older numpy (version 1.22.x
is probably contemporary with MNE 1.0.3, and probably won’t raise an error yet).