Skip to content

typing.array

array(dtype: object, ndims: int, ndims_max: int | None = None) -> object

Type for arrays with specified number of dimensions.

Args

  • dtype: Scalar type for the array elements.
  • ndims: Number of dimensions for the array.
  • ndims_max: If set, maximal number of dimensions for the array. Any dimensions between ndims and ndims_max (inclusive) are valid.

Returns

Array type.