Fix the lint slip in the parity gate: zip needs an explicit strict argument
This commit is contained in:
parent
b1cd892040
commit
d10236453b
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue