pyrtma.validators.FloatValidatorBase
- class FloatValidatorBase(*args)[source]
Bases:
FieldValidator
[_P
,float
],Generic
[_P
]Abstract base class for float type validators
Methods
Validate multiple float values
Validate a float value
- validate_many(value)[source]
Validate multiple float values
- Parameters:
value (Iterable[float]) – Iterable of floats to validate
- Raises:
TypeError – Wrong type
ValueError – Value cannot be precisely represented with this datatype
- validate_one(value)[source]
Validate a float value
- Parameters:
value (float) – Float value
- Raises:
TypeError – Wrong type
ValueError – Value cannot be precisely represented with this datatype