instead of `np.array` you want `~numpy.ndarray`.

`ndarray` is the type of object, `np.array` is a function that creates ndarrays. The tilde tells Sphinx to make the text appear as "ndarray" in the documentation rather than `numpy.ndarray`, while still generating a link to the numpy documentation for the ndarray class.