Using this instead of a list comprehension should work and would be faster:

    (np.float32, np.float64)