kd.typing.ArraySpec

kd.typing.ArraySpec#

class kauldron.typing.ArraySpec(
dtype: numpy.dtype[Any] | None | type[Any] | numpy._typing._dtype_like._SupportsDType[numpy.dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | collections.abc.Sequence[SupportsIndex]] | list[Any] | numpy._typing._dtype_like._DTypeDict | tuple[Any, Any],
shape: Tuple[int | None, ...],
)[source]

Bases: object

Describes an array via it’s dtype and shape.

dtype: numpy.dtype[Any] | None | type[Any] | numpy._typing._dtype_like._SupportsDType[numpy.dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | collections.abc.Sequence[SupportsIndex]] | list[Any] | numpy._typing._dtype_like._DTypeDict | tuple[Any, Any]
shape: Tuple[int | None, ...]