mixins
mixins ¶
Defines inputs
ArrayDunders ¶
Bases: NumericDunders
A mixin class that extends NumericDunders with additional array-like behavior.
NumericDunders ¶
A mixin class containing numeric dunder methods that can be applied to any class via composition
Attributes:
Name | Type | Description |
---|---|---|
RESERVED_NAME |
str
|
Name of the reserved attribute that holds the value |
get_value
classmethod
¶
Get the value of the instance
Parameters:
Name | Type | Description | Default |
---|---|---|---|
instance
|
Any
|
Instance of the class |
required |
Returns:
Name | Type | Description |
---|---|---|
Any |
Value of the instance stored in the reserved attribute or else returns the instance.
For example, if the reserved attribute is 'value', then it returns |