mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-14 04:09:09 +00:00
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:
parent
10fba55595
commit
f01148765e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue