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>
This commit is contained in:
apex-mochen 2026-10-10 22:31:25 +08:00
parent 10fba55595
commit f01148765e

View file

@ -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