colour.utilities.MixinDataclassIterable#

class colour.utilities.MixinDataclassIterable[source]#

Bases: MixinDataclassFields

A mixin providing iteration capabilities over the dataclass-like class fields.

Attributes

Methods

Notes

property keys: tuple#

Getter property for the dataclass-like class keys, i.e., the field names.

Returns:

dataclass-like class keys.

Return type:

tuple

property values: tuple#

Getter property for the dataclass-like class values, i.e., the field values.

Returns:

dataclass-like class values.

Return type:

tuple

property items: tuple#

Getter property for the dataclass-like class items, i.e., the field names and values.

Returns:

dataclass-like class items.

Return type:

tuple

__iter__() Generator[source]#

Return a generator for the dataclass-like class fields.

Yields:

Generatordataclass-like class field generator.

Return type:

Generator