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:
1 parent
cb3ba45317
commit
a4d2430140
922 files changed
+406
-7738
No files matched your search
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Exercise the TUI through the native Windows ConPTY boundary."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ from zipfile import ZipFile
|
||||
|
||||
REPLY_LIMIT = 16_000_000
|
||||
REQUEST = {"kind": "render", "input": {
|
||||
# Exercise real CJK outlines and C4's generated Latin punctuation together.
|
||||
"source": 'C4Container\n Person(user, "用户")\n Container(api, "API 服务", "TypeScript")\n Rel(user, api, "调用", "HTTPS")',
|
||||
"width": 800, "scale": 2,
|
||||
"colors": {"foreground": "#202020", "muted": "#666666", "surface": "#eeeeee",
|
||||
@@ -128,7 +127,6 @@ def main() -> None:
|
||||
worker = Worker(binary, root)
|
||||
try:
|
||||
renders = [worker.render() for _ in range(5)]
|
||||
# Terminate a submitted request without waiting for its reply.
|
||||
worker.send()
|
||||
finally:
|
||||
worker.close()
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
"""Create one self-contained, licensed native TUI release archive."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
|
||||
@@ -41,7 +41,7 @@ def _read(fd: int, timeout: float) -> bytes:
|
||||
try:
|
||||
chunk = os.read(fd, 65_536)
|
||||
except OSError as exc:
|
||||
if exc.errno == errno.EIO: # PTY slave closed.
|
||||
if exc.errno == errno.EIO:
|
||||
break
|
||||
raise
|
||||
if not chunk:
|
||||
|
||||
Reference in new issue
Block a user