Skip to content

Commit

Permalink
Align docstring format
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Andreas Entschev <peter@entschev.com>
  • Loading branch information
jakirkham and pentschev authored Oct 2, 2024
1 parent 56e3c89 commit affd750
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ucp/_libs/arr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Array>obj
Expand Down

0 comments on commit affd750

Please sign in to comment.