[Bugfix] Fix mypy errors in hermes_tool_parser.py (#36114)

Signed-off-by: Shiyan Deng <dsy842974287@meta.com>
This commit is contained in:
Shiyan Deng
2026-03-05 03:37:47 -08:00
committed by GitHub
parent a708ef5944
commit 3c23ac840e

View File

@@ -368,6 +368,9 @@ class Hermes2ProToolParser(ToolParser):
# now, the nitty-gritty of tool calls
# now we have the portion to parse as tool call.
if current_tool_call is None:
return None
logger.debug(
"Trying to parse current tool call with ID %s", self.current_tool_id
)