Skip to content

Commit 7086cdf

Browse files
committed
DOC: default_device can be None
1 parent 9a3fc5b commit 7086cdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/array_api_stubs/_draft/info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def default_device() -> device:
8080
Returns
8181
-------
8282
out: device
83-
an object corresponding to the default device.
83+
an object corresponding to the default device or ``None``.
84+
A conforming array library may return ``None`` if the default device is not
85+
predictable due to library specific device placement rules.
8486
8587
Notes
8688
-----

0 commit comments

Comments
 (0)