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

@@ -76,8 +76,6 @@ async def test_chat_falls_back_to_stream_on_long_request_error() -> None:
assert captured["temperature"] == 0.5
assert captured["reasoning_effort"] == "high"
assert captured["tool_choice"] == "auto"
# The fallback must NOT pass an on_content_delta — chat() callers don't
# expect streaming side-effects.
assert "on_content_delta" not in captured
@@ -100,5 +98,4 @@ async def test_chat_does_not_fall_back_on_unrelated_value_error() -> None:
result = await provider.chat(messages=[{"role": "user", "content": "hi"}])
assert called is False
# Generic ValueError flows through _handle_error and surfaces as an error response.
assert result.finish_reason == "error" or "Error" in (result.content or "")