Skip to content

docs: __array_namespace_info__ erroneously under an info namespace? #1012

Description

@lucascolley

https://data-apis.org/array-api/latest/API_specification/generated/array_api.info.__array_namespace_info__.html

Why is this under array_api.info rather than array_api? One must include that in order to intersphinx:

Image

But that is quite misleading:

>>> xp.__array_namespace_info__
<function __array_namespace_info__ at 0x108777060>

>>> xp.info.__array_namespace_info__
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    xp.info.__array_namespace_info__
    ^^^^^^^
  File "/Users/lucascolley/Library/Caches/rattler/cache/cached-envs-v0/python-b99d679870876da1/lib/python3.14/site-packages/array_api_strict/__init__.py", line 362, in __getattr__
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
AttributeError: module 'array_api_strict' has no attribute 'info'. Did you mean: 'finfo'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions