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 @@
"""Name discovery is passive; OpenSSH, not our index, interprets connection options."""
import asyncio
import json
import subprocess
@@ -103,7 +101,7 @@ def test_include_read_budget_is_bounded_and_reported(ssh_home):
(ssh_home / f"large-{index}").write_text(f"Host host-{index}\n#" + "x" * 250000)
result = discover_hosts(str(config))
assert result["incomplete"]
assert len(result["files"]) == 5 # Root plus four complete included files.
assert len(result["files"]) == 5
assert result["hosts"][-1]["host"] == "final"