From 63543f8b711e9575e30400a260c8ecf9df81e3e5 Mon Sep 17 00:00:00 2001 From: miguelgfierro Date: Thu, 9 Jul 2026 18:50:11 +0200 Subject: [PATCH] style: ruff format _changed_row_count (CI lint fix) --- src/flydocs/core/services/repair/field_repairer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/flydocs/core/services/repair/field_repairer.py b/src/flydocs/core/services/repair/field_repairer.py index a4cd980..8dfa61e 100644 --- a/src/flydocs/core/services/repair/field_repairer.py +++ b/src/flydocs/core/services/repair/field_repairer.py @@ -346,9 +346,7 @@ def _changed_row_count(old_rows: list[Any], new_rows: list[Any]) -> int: stable keys, so an inserted or dropped row also counts as a change. """ changed = sum( - 1 - for old, new in zip(old_rows, new_rows, strict=False) - if _row_signature(old) != _row_signature(new) + 1 for old, new in zip(old_rows, new_rows, strict=False) if _row_signature(old) != _row_signature(new) ) return changed + abs(len(old_rows) - len(new_rows))