Relative Content

Tag Archive for pythonnumpymypy

Numpy type overloading

I’d like to add typehints to a function that accepts either np.float32 arrays or np.float64 arrays and returns the same type: