Quellcode für text_lint.operations.validators.expressions.less_than

"""LessThan class."""
from typing import Union

from text_lint.operations.validators.expressions.bases import expression_base


[Doku] class LessThan(expression_base.ExpressionBase): """Evaluate one value being less than another.""" operator = "<"
[Doku] def apply(self, value_a: float, value_b: float) -> Union[float, bool]: """Apply the mathematical operator to these two values.""" return value_a < value_b