Skip to content

ENH: array API "namespace" #65

@tylerjereddy

Description

@tylerjereddy

When running the array API testsuite with pykokkos, one can see this warning: hypothesis/extra/array_api.py:789: HypothesisWarning: Could not determine whether module pykokkos is an Array API library.

If you look at the related code block in hypothesis testing library proper:

    try:
        array = xp.zeros(1)
        array.__array_namespace__()
    except Exception:
        warn(
            f"Could not determine whether module {xp.__name__} is an Array API library",
            HypothesisWarning,
        )   

For details on the requirements for this __array_namespace__() method see:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions