chore(vertex_ai): drop redundant isinstance after cast in id check

basedpyright counts the str isinstance as reportUnnecessaryIsInstance
now that the id carries a str cast, and the type gate rejects any
growth over the merge-base count.
This commit is contained in:
libaojiang 2026-10-12 23:09:45 +08:00
parent 882daa802a
commit 2403fa9384

View file

@ -1329,7 +1329,7 @@ def get_thought_signature_from_tool(tool: Mapping[str, object]) -> str | None:
tool_call_id: Final = cast( # cast-ok: tool IDs come from model responses
str, tool.get("id")
)
if tool_call_id and isinstance(tool_call_id, str):
if tool_call_id:
_, signature = _decode_tool_call_id_with_signature(tool_call_id)
return signature
return None