From 6f2c2b22b83080ddea2947687dee1aca96559df2 Mon Sep 17 00:00:00 2001 From: shehryars715 Date: Mon, 12 Oct 2026 00:01:19 +0500 Subject: [PATCH] chore(proxy): mark the unused os.walk dirs name in the UI rewrite helper Moving the loop into _apply_server_root_path_to_ui made dirs a function local, which basedpyright reports as reportUnusedVariable. --- litellm/proxy/proxy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 9ce084fe7df..15d4fe1ca06 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -2380,7 +2380,7 @@ try: ) def _apply_server_root_path_to_ui(ui_dir: str, server_root_path: str) -> None: - for root, dirs, files in os.walk(ui_dir): + for root, _dirs, files in os.walk(ui_dir): for filename in files: file_path = os.path.join(root, filename) # Skip binary files and files that don't need path replacement