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 -3
View File
@@ -1,5 +1,3 @@
"""Tests for atomic config.json writes."""
from __future__ import annotations
import json
@@ -48,4 +46,4 @@ def test_save_config_preserves_existing_file_when_write_fails(
save_config(Config(), path)
assert path.read_text(encoding="utf-8") == before
assert json.loads(before) # still valid JSON
assert json.loads(before)
+1 -1
View File
@@ -86,7 +86,7 @@ def test_legacy_provider_api_migrates_and_saves_current_format(tmp_path, field,
save_config(config, path)
saved = json.loads(path.read_text(encoding="utf-8"))["providers"]["openai"]
assert saved.get("api") == expected
assert field not in saved # The seeded legacy field must not survive a save.
assert field not in saved
assert load_config(path).providers.openai.api == config.providers.openai.api
-2
View File
@@ -1,5 +1,3 @@
"""One shared address with explicit feature opt-in."""
import json
import httpx