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
@@ -1,5 +1,3 @@
"""Standard-library atomic record replacement, also used by the update worker."""
from __future__ import annotations
import errno
@@ -118,7 +116,6 @@ def read_atomic_bytes(path: Path, *, max_bytes: int = -1) -> bytes:
def _fsync_directory_after_replace(directory: Path) -> None:
"""Fsync a directory, ignoring only unsupported platforms/filesystems."""
with suppress(PermissionError):
fd = os.open(str(directory), os.O_RDONLY)
try: