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

@@ -12,7 +12,6 @@ from nanobot.agent.tools.registry import ToolRegistry, is_tool_error_result
def test_loader_discovers_entry_point_tools(tmp_path, monkeypatch):
"""Discover a real distribution descriptor in the tool entry-point group."""
class _FakeTool(Tool):
__name__ = "FakeTool"
@@ -64,7 +63,6 @@ def test_loader_discovers_entry_point_tools(tmp_path, monkeypatch):
def test_loader_skips_abstract_entry_point_tools():
"""Verify abstract tool classes registered via entry_points are skipped."""
mock_ep = MagicMock()
mock_ep.name = "abstract_plugin"
@@ -81,7 +79,6 @@ def test_loader_skips_abstract_entry_point_tools():
def create(cls, ctx):
return MagicMock()
# Intentionally missing abstract properties (name, description, parameters, execute)
mock_ep.load.return_value = _AbstractTool
@@ -94,7 +91,6 @@ def test_loader_skips_abstract_entry_point_tools():
@pytest.mark.asyncio
async def test_loader_entry_point_error_wrapper_preserves_tool_api(tmp_path):
"""Only adapt legacy plugin error strings; keep the wrapped tool API intact."""
mock_ep = MagicMock()
mock_ep.name = "api_plugin"