mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
fix(lint): mutable-ok marker on the prefix accumulator (LIT002 type-discipline gate)
This commit is contained in:
parent
548bed2e49
commit
88acad9cb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue