From affd75044e05bc577fbf8384e4e17e37673f0f1b Mon Sep 17 00:00:00 2001 From: jakirkham Date: Wed, 2 Oct 2024 00:42:33 -0700 Subject: [PATCH] Align docstring format Co-authored-by: Peter Andreas Entschev --- ucp/_libs/arr.pyx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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