probly.representation.array_like.ArrayLike¶
- class probly.representation.array_like.ArrayLike(*args, **kwargs)[source]¶
-
Protocol for array-like objects.
Unlike numpy.typing.ArrayLike, this protocol does not only check whether an object can be converted to a numpy array, but rather whether it supports core indexing and shape/metadata operations similar to a numpy array. This protocol is based in the Python array API standard: https://data-apis.org/array-api Unlike the official standard, this protocol does not require support for all numerical operations.