zcollection.type_hints.ArrayLike#

class zcollection.type_hints.ArrayLike(*args, **kwargs)[source]#

Bases: Protocol[_DType_co]

Protocol for array-like objects.

Attributes

dtype

The data type of the array.

shape

The shape of the array.

size

The size of the array.

Public Methods

astype(dtype)

Convert the array to a given type.

Protected Methods

Special Methods

__array__()

__callable_proto_members_only__

__orig_bases__

__parameters__

__protocol_attrs__

__subclasshook__(other)

Abstract classes can override this to customize issubclass().