refactor: remove redundant comments and docstrings (#6527)

* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-30 13:07:03 +08:00
1 parent cb3ba45317
commit a4d2430140
922 files changed
+406 -7738

No files matched your search

+1 -4
View File
@@ -1,5 +1,3 @@
"""Message tool for sending messages to users."""
# pyright: reportIncompatibleMethodOverride=false
from collections.abc import Awaitable, Callable, Generator
@@ -124,7 +122,6 @@ class MessageTool(Tool):
)
def _resolve_media(self, media: list[str]) -> list[str]:
"""Resolve local media attachments and enforce workspace restriction when enabled."""
resolved: list[str] = []
access = current_tool_workspace(
self._workspace,
@@ -150,7 +147,7 @@ class MessageTool(Tool):
media: list[str] | None = None,
buttons: Any = None,
**kwargs: Any,
) -> str: # pyright: ignore[reportIncompatibleMethodOverride]
) -> str:
from nanobot.utils.helpers import strip_think
content = strip_think(content)