(self)
return self._is_error
for some reason python do this:
        >>> 1.0 > None
        True
        >>> 1.0 < None
        False
        so we just check if min/max is not None before return _is_error
for some reason python do this:
        >>> 1.0 > None
        True
        >>> 1.0 < None
        False
        so we just check if min/max is not None before return _is_error
for some reason python do this : >>> 1 . 0 > None True >>> 1 . 0 < None False so we just check if min / max is not None before return _is_error
def is_error(self):
        """
        for some reason python do this:
        >>> 1.0 > None
        True
        >>> 1.0 < None
        False
        so we just check if min/max is not None before return _is_error
        """
        if self.threshold is None:
            return False
        return self._is_error
def is_error ( self ) : if self . threshold is None : return False return self . _is_error