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: