From b0b8436f1c031caba61c4cadb10d22ba097cd960 Mon Sep 17 00:00:00 2001 From: Kangyan-Zhou Date: Fri, 12 Jun 2026 15:20:36 -0700 Subject: [PATCH] [Fix] Unquote ResponseTool annotation breaking lint on all PRs (#28095) Co-authored-by: Claude Fable 5 --- python/sglang/srt/entrypoints/openai/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/srt/entrypoints/openai/protocol.py b/python/sglang/srt/entrypoints/openai/protocol.py index d23366372..f142d198d 100644 --- a/python/sglang/srt/entrypoints/openai/protocol.py +++ b/python/sglang/srt/entrypoints/openai/protocol.py @@ -1320,7 +1320,7 @@ class ResponseTool(BaseModel): tools: Optional[List[Dict[str, Any]]] = None @model_validator(mode="after") - def validate_function_tool(self) -> "ResponseTool": + def validate_function_tool(self) -> ResponseTool: if self.type == "function" and not self.name: raise ValueError("Function tools must include a name.") return self