firecrown.descriptors.TypeFloat
- class firecrown.descriptors.TypeFloat(minvalue=None, maxvalue=None, allow_none=False)[source]
Bases:
Validator
Floating point number attribute descriptor.
Public Methods:
__init__
([minvalue, maxvalue, allow_none])validate
(value)Abstract method to perform whatever validation is required.
Inherited from
Validator
__set_name__
(owner, name)Create the name of the private instance variable that will hold the value.
__get__
(obj[, objtype])Accessor method, which reads controlled value.
__set__
(obj, value)Setter for the validated variable.
validate
(value)Abstract method to perform whatever validation is required.
Private Methods:
_is_constrained
()