Characteristic examples
The galactic.algebras.convex.characteristics.examples.arithmetic
module.
-
class Integer(characteristic=None, multiple=False, **kwargs)
Bases: MultipleValue
It represents an integer value.
It can use the multiple
keyword parameters from its super class.
-
__call__(item)
Return an optional collection from the item.
- Parameters:
item (object
) – Any python object.
- Returns:
An optional collection. The None value represents a completely
unknown value.
- Return type:
Collection[object] | None
-
classmethod constructor(value)
Transform a value to an int.
- Parameters:
value (object
) – The value to transform.
- Returns:
An integer value or None if this is not possible.
- Return type:
int | None