fix(lint): mutable-ok marker on the prefix accumulator (LIT002 type-discipline gate)

This commit is contained in:
gym-cmd 2026-08-05 12:37:08 +01:00
parent 548bed2e49
commit 88acad9cb1

View file

@ -25,7 +25,7 @@ SERVER_ROOT_PATHS_ENV: Final = "SERVER_ROOT_PATHS"
def normalize_root_paths(raw_paths: Sequence[str]) -> tuple[str, ...]:
"""Strip whitespace and trailing slashes, dedupe, order longest-first;
warn and drop entries missing a leading ``/`` and the bare root."""
kept: list[str] = []
kept: list[str] = [] # mutable-ok: local accumulator; escapes only as a tuple
for entry in raw_paths:
candidate = entry.strip()
if not candidate: