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'?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MaintenanceBug fix, typo fix, or general maintenance.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions