|
| | __init__ (self, Union[int, float] minimum, Union[int, float] maximum, Union[int, float] increment) |
| | Creates a range with specified minimum, maximum, and increment values.
|
| |
| bool | __eq__ (self, Any other) |
| | Check if two intervals are equal.
|
| |
| Union[int, float] | increment (self) |
| | Retrieves the increment value associated with this range.
|
| |
| str | __str__ (self) |
| | Returns a string representation of the Range object.
|
| |
| str | __repr__ (self) |
| | Return an unambiguous string of the Range object.
|
| |
Represents a numeric range with defined boundaries and a fixed increment.
A Range models a continuous sequence of values starting from a minimum value, ending at a maximum value, and progressing in steps defined by an increment. It supports integers and floating-point numbers.
This class ensures that the increment does not exceed the total span between the minimum and maximum bounds. The range is inclusive of its boundary values.
Definition at line 8 of file range.py.