Numpy type change and docstring