Characteristics examples

galactic.patterns.characteristics.examples module.

class Integer(characteristic=None, label='', explanation='', cache=True, multiple=False)

Bases: MultipleValue

It represents an integer value.

It can use the multiple keyword parameters from its super class.

classmethod constructor(value)

Transform a value to an int.

Parameters:

value (object) – The value to transform.

Return type:

int | None

Returns:

An integer value or None if this is not possible.

__call__(individual)

Return an optional collection from the individual.

Parameters:

individual (object) – Any python object.

Return type:

Collection[object] | None

Returns:

An optional collection. The None value represents a completely unknown value.