replace np.float with np.floating in type check

`np.float` was deprecated in Numpy 1.20:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
14 jobs for fix_deprecated_typecheck in 13 minutes and 40 seconds (queued for 1 second)