mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
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:
parent
882daa802a
commit
2403fa9384
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue