From 88acad9cb103b2b134c88629ef98cec0f9e89ef1 Mon Sep 17 00:00:00 2001 From: gym-cmd <186399764+gym-cmd@users.noreply.github.com> Date: Wed, 5 Aug 2026 12:37:08 +0100 Subject: [PATCH] fix(lint): mutable-ok marker on the prefix accumulator (LIT002 type-discipline gate) --- litellm/proxy/middleware/per_request_root_path_middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/middleware/per_request_root_path_middleware.py b/litellm/proxy/middleware/per_request_root_path_middleware.py index 1630d64b93a..f18fc6715b6 100644 --- a/litellm/proxy/middleware/per_request_root_path_middleware.py +++ b/litellm/proxy/middleware/per_request_root_path_middleware.py @@ -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: