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 @@
"""Remote setup discovers metadata, not secrets, and never invents sudo access."""
import asyncio
import getpass
import json
@@ -46,7 +44,7 @@ def locate(monkeypatch, capsys, path, units="", properties=""):
def test_default_config_found_without_reading_contents(tmp_path, monkeypatch, capsys):
path = tmp_path / "config.json"
path.write_text("model-secret") # Even invalid config content isn't read by discovery.
path.write_text("model-secret")
result, calls = locate(monkeypatch, capsys, path)
assert result["candidates"] == [{"config_path": str(path), "runtime_user": "", "service": ""}]
assert len(calls) == 1