diff --git a/api/src/parser/statements/checks.py b/api/src/parser/statements/checks.py index 9c741e8..c7ce031 100644 --- a/api/src/parser/statements/checks.py +++ b/api/src/parser/statements/checks.py @@ -38,9 +38,7 @@ def _rhs(amounts: dict[str, Decimal], rule: RelationRule, *, absolute: bool) -> return total -def _holds( - amounts: dict[str, Decimal], rule: RelationRule, tolerance: Decimal -) -> tuple[bool, Decimal, Decimal]: +def _holds(amounts: dict[str, Decimal], rule: RelationRule, tolerance: Decimal) -> tuple[bool, Decimal, Decimal]: """Проверка соотношения в пределах допуска. Вычисляет правую часть два раза: как записано и с abs() для членов в abs_terms.