[typing] fix type (#29964)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
Ning Xie 2025-12-05 18:46:08 +08:00 committed by GitHub
parent f16356fe36
commit 7ae13c66ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ class ReasoningParser:
self,
original_tag: str | None,
tool_server: ToolServer | None,
) -> str:
) -> str | None:
"""
Instance method that is implemented for preparing the structured tag
Otherwise, None is returned

View File

@ -145,7 +145,7 @@ class GptOssReasoningParser(ReasoningParser):
# This function prepares the structural tag to format reasoning output
def prepare_structured_tag(
self, original_tag: str | None, tool_server: ToolServer | None
) -> str:
) -> str | None:
if original_tag is None:
if tool_server is None:
return json.dumps(no_func_reaonsing_tag)