diff --git a/ucp/_libs/arr.pyx b/ucp/_libs/arr.pyx index 8ca0428a..0c332ef3 100644 --- a/ucp/_libs/arr.pyx +++ b/ucp/_libs/arr.pyx @@ -302,11 +302,15 @@ cdef inline Py_ssize_t _nbytes(Py_ssize_t itemsize, cpdef Array asarray(obj): """Coerce other objects to ``Array``. No-op for existing ``Array``s. - Args: - obj: Object exposing the Python buffer protocol or ``__cuda_array_interface__`` + Parameters + ---------- + obj: object + Object exposing the Python buffer protocol or ``__cuda_array_interface__``. - Returns: - Array: An instance of the ``Array`` class + Returns + ------- + array: Array + An instance of the ``Array`` class. """ if isinstance(obj, Array): return obj