code: def validate_float(cls, value):
          
          if not isinstance(value, (int, float)):
              raise TypeError(
                  "value must be a number, got %s" % type(value)
              )
docs: Note that int values are accepted.