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

-3
View File
@@ -234,7 +234,6 @@ def test_exec_session_yield_returns_when_process_finishes_early(tmp_path):
if pending.done():
pytest.fail(f"child exited before readiness: {await pending}")
await asyncio.sleep(0.01)
# Measure responsiveness only after the actual child is ready to exit.
release.touch()
return await asyncio.wait_for(pending, timeout=3)
finally:
@@ -727,7 +726,6 @@ def test_exec_session_wait_for_reports_timeout_without_killing_session(tmp_path)
initial = await exec_tool.execute(command=command, yield_time_ms=0)
sid = _session_id(initial)
# Synchronize on an stdin-gated marker before exercising the immediate timeout below.
ready = await stdin_tool.execute(
session_id=sid,
input="\n",
@@ -1157,7 +1155,6 @@ def test_terminate_by_owner_skips_sessions_without_owner_key(tmp_path):
manager = ExecSessionManager()
tool = ExecTool(working_dir=str(tmp_path), timeout=30, session_manager=manager)
# Spawn without owner (no request context)
initial = await tool.execute(
command=_waiting_shell_command("ready"),
yield_time_ms=100,