From f01148765e855bd77617fb566be46281fad45872 Mon Sep 17 00:00:00 2001 From: apex-mochen <2756823972@qq.com> Date: Sat, 10 Oct 2026 22:31:25 +0800 Subject: [PATCH] fix(proxy): annotate Final on stripped route path in _matches_vertex_method The new helper bound `path` without a Final declaration, tripping the LIT010 total-count gate (16248 > 16247). Bind it Final; the name is never rebound. Signed-off-by: apex-mochen <2756823972@qq.com> --- .../llm_provider_handlers/vertex_passthrough_logging_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py index b95cb945e5e..42ff023a092 100644 --- a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py +++ b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py @@ -133,7 +133,7 @@ class VertexPassthroughLoggingHandler: The query string is stripped first so a route such as ``.../gemini-3.8-flash:streamGenerateContent?alt=sse`` still matches. """ - path = urlparse(url_route).path + path: Final = urlparse(url_route).path return path.endswith((method, ":" + method)) @staticmethod