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

"""GreaterThan class."""
from typing import Union

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


[Doku] class GreaterThan(expression_base.ExpressionBase): """Evaluate one value being greater 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