From b9e6e319cf0def95e80592430eff892704bd1a69 Mon Sep 17 00:00:00 2001 From: Andrey Epifancev Date: Tue, 6 Oct 2026 17:50:59 +0400 Subject: [PATCH] style(task-11): format checks.py (ruff) Refs #14 Co-Authored-By: Claude Haiku 4.5 Claude-Session: cedd7915-2efe-41e5-988c-a9117033598b --- api/src/parser/statements/checks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.