@pavyamsiri discovered in scipy/scipy-stubs#195 (comment) a false negative in mypy with recursive sequences. This causes e.g. onp.ToFloatND = "huh" to be accepted by mypy.
I raised this in python/mypy#18184.
In the meantime we'll need a workaround, as this directly affects a very large portion of the annotations in scipy-stubs.