From d10236453b0dd94c31a9ebe3f95aaa904afab4ff Mon Sep 17 00:00:00 2001 From: heaven Date: Tue, 11 Aug 2026 14:53:53 +0300 Subject: [PATCH] Fix the lint slip in the parity gate: zip needs an explicit strict argument --- eval/dovodka/paritet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval/dovodka/paritet.py b/eval/dovodka/paritet.py index 4789ac9d..d5236600 100644 --- a/eval/dovodka/paritet.py +++ b/eval/dovodka/paritet.py @@ -45,7 +45,7 @@ def main() -> int: return bad a, b = body(cl), body(sol) ck("обвязки совпадают ВЕЗДЕ, кроме путей", a == b, - f"первое расхождение: {next((i for i, (x, y) in enumerate(zip(a.splitlines(), b.splitlines())) if x != y), '—')}") + f"первое расхождение: {next((i for i, (x, y) in enumerate(zip(a.splitlines(), b.splitlines(), strict=False)) if x != y), '—')}") c = core.read_text(encoding="utf-8").strip() norm = lambda t: re.sub(r"\s+", " ", t) # noqa: E731 перенос строки не различие for f in (cl, sol):