From 7f7111a2fa1c3874b4bc69ad77e86c39dd950372 Mon Sep 17 00:00:00 2001 From: shehryars715 Date: Sat, 10 Oct 2026 03:13:37 +0500 Subject: [PATCH] chore(proxy): declare ui_config_path Final for the type-discipline gate The LIT010 gate added on main requires new local bindings to be declared Final. ui_config_path is assigned once and never rebound. --- 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 2f9aab2ad10..9ce084fe7df 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -2373,7 +2373,7 @@ try: in /litellm the rewritten path still contains the original one, so a plain replace would prepend the root path again on each restart. """ - ui_config_path = f"{server_root_path}/.well-known/litellm-ui-config" + ui_config_path: Final = f"{server_root_path}/.well-known/litellm-ui-config" return ui_config_path.join( part.replace("/litellm/.well-known/litellm-ui-config", ui_config_path) for part in content.split(ui_config_path)