Skip to content

test_capabilities prohibits "max dimensions" to have None value #377

Closed
@antonwolfy

Description

@antonwolfy

Based on the spec:

If a conforming implementation supports arrays having an arbitrary number of dimensions (potentially infinite), the corresponding dictionary value must be None; otherwise, the value must be a finite integer.

"max dimensions" can be either None or integer.

While the test_capabilities assumes "max dimensions" to have only integer data type:

        if xp.__array_api_version__ >= "2024.12":
            expected_attr.update(**{"max dimensions": int})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions