helpers.custom_types
Custom types for controlling argparse selections.
- class lta.helpers.custom_types.FloatRange(start: float, end: float)
A custom range that supports floating point numbers.
This does not implement all the features of the default range. Namely, it doesn’t support an interval as this does not makes sense in the context of floats, as they are an infinitely sub-dividable set.
Its principle use is to provide a custom container to argparse to restrict the values a float might be.