Skip to content

NamedArray.shape does not support unknown dimensions #8291

Closed
@headtr1ck

Description

@headtr1ck

What is your issue?

According to the array api standard, the shape property returns tuple[int | None, ...].
Currently we only support tuple[int, ...]

This will actually raise some errors if a duckarray actually returns some None.
E.g. NamedArray.size will fail.

(On a side note: dask arrays actually use NaN instead of None for some reason.... Only advantage of this is that NamedArray.size will actually also return NaN instead of raising...)

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