Skip to content

Commit 7439bec

Browse files
committed
cont
Signed-off-by: nstarman <[email protected]>
1 parent 0b17bb6 commit 7439bec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/array_api_stubs/_draft/array_object.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from __future__ import annotations
22

33
from typing import TYPE_CHECKING, Protocol, TypeVar
4+
from .data_types import DType
5+
from ._types import device as Device
46

57
if TYPE_CHECKING:
68
from ._types import (
7-
device as Device,
89
Any,
910
PyCapsule,
1011
Enum,
1112
ellipsis,
1213
)
13-
from .data_types import DType
1414

1515
array = TypeVar("array", bound="Array")
1616
# NOTE: when working with py3.11+ this can be ``typing.Self``.
@@ -376,7 +376,7 @@ def __dlpack_device__(self, /) -> tuple[Enum, int]:
376376
377377
Returns
378378
-------
379-
device: Tuple[Enum, int]
379+
device: Tuple[:class:`~enum.Enum`, int]
380380
a tuple ``(device_type, device_id)`` in DLPack format. Valid device type enum members are:
381381
382382
::
@@ -1088,7 +1088,7 @@ def to_device(
10881088
device: device
10891089
a ``device`` object (see :ref:`device-support`).
10901090
stream: Optional[Union[int, Any]]
1091-
stream object to use during copy. In addition to the types supported in :meth:`array.__dlpack__`, implementations may choose to support any library-specific stream object with the caveat that any code using such an object would not be portable.
1091+
stream object to use during copy. In addition to the types supported in :meth:`Array.__dlpack__`, implementations may choose to support any library-specific stream object with the caveat that any code using such an object would not be portable.
10921092
10931093
Returns
10941094
-------

0 commit comments

Comments
 (0)