diplomat.processing.type_casters.RoundedDecimal¶
- class diplomat.processing.type_casters.RoundedDecimal(precision: int = 5)[source]¶
Bases:
ConvertibleTypeCasterRepresents a decimal rounded to a fixed precision.
Methods
__init__([precision])Convert this type to a CLI-Friendly format for display on the command line as a metavar.
Abstract method: Convert this typecaster instance to a regular type hint.