Skip to content

Commit 53d6d75

Browse files
kingpanther13claude
andcommitted
fix: annotate desc type for mypy no-any-return
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1dc2a1d commit 53d6d75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/extract_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _tool_hint(tool: dict) -> str:
237237

238238
def _brief_description(tool: dict) -> str:
239239
"""Return the first sentence of the tool description."""
240-
desc = tool.get("description", "")
240+
desc: str = tool.get("description", "")
241241
# Take first sentence (up to first period followed by space or newline)
242242
for i, ch in enumerate(desc):
243243
if ch == "." and (i + 1 >= len(desc) or desc[i + 1] in (" ", "\n")):

0 commit comments

Comments
 (0)