Note that int values are accepted.

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