docs: `default_device()` can be `None` by ev-br · Pull Request #961 · data-apis/array-api · GitHub
Skip to content

docs: default_device() can be None#961

Merged
kgryte merged 2 commits into
data-apis:mainfrom
ev-br:default_device_None
Nov 13, 2025
Merged

docs: default_device() can be None#961
kgryte merged 2 commits into
data-apis:mainfrom
ev-br:default_device_None

Conversation

@ev-br

@ev-br ev-br commented Jun 23, 2025

Copy link
Copy Markdown
Member

closes gh-923.

Per discussion in the community meeting, https://hackmd.io/zn5bvdZTQIeJmb3RW1B-8g#Meeting-minutes-15-May-2025 and the resolution of #923 (comment), spell out explicitly that None is an allowed return value of the default_device.

@lucascolley lucascolley changed the title DOC: default_device can be None docs: default_device() can be None Jun 23, 2025
@jakevdp

jakevdp commented Jun 23, 2025

Copy link
Copy Markdown

@ev-br

ev-br commented Jun 23, 2025

Copy link
Copy Markdown
Member Author

Comment thread src/array_api_stubs/_draft/info.py Outdated
@kgryte kgryte added this to the v2025 milestone Jun 25, 2025
@kgryte kgryte added API change Changes to existing functions or objects in the API. topic: Device Handling Device handling. labels Jun 25, 2025

@kgryte kgryte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kgryte kgryte merged commit a4c30eb into data-apis:main Nov 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change Changes to existing functions or objects in the API. topic: Device Handling Device handling.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: clarify if __array_namespace_info().default_device() can be None

4 participants