From 7bd72274780ccaeae8bbae6e761341079df21ecb Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:12:01 +0200 Subject: Do not redefine underscore (#3865) * do not redefine underscore * Disallow any redefinitions going forward --------- Co-authored-by: CapellanCitizen <> --- lib/stitches/running_stitch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stitches') diff --git a/lib/stitches/running_stitch.py b/lib/stitches/running_stitch.py index 0b7a672d..8b8add7e 100644 --- a/lib/stitches/running_stitch.py +++ b/lib/stitches/running_stitch.py @@ -216,8 +216,8 @@ def stitch_curve_evenly(points: typing.Sequence[Point], stitch_length: float, to if len(points) < 2: return [] distLeft = [0] * len(points) - for i in reversed(range(0, len(points) - 1)): - distLeft[i] = distLeft[i + 1] + points[i].distance(points[i+1]) + for j in reversed(range(0, len(points) - 1)): + distLeft[j] = distLeft[j + 1] + points[j].distance(points[j+1]) i: typing.Optional[int] = 1 last = points[0] -- cgit v1.2.3