Fix the lint slip in the parity gate: zip needs an explicit strict argument

This commit is contained in:
heaven 2026-08-11 14:53:53 +03:00
parent b1cd892040
commit d10236453b

View file

@ -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):