Files
NCBM fbba2c2a14 core/tools+test: make process and path checks Windows-portable
Use sys.executable for process tests; normalize denylist/glob paths; skip readline when missing.
2026-07-15 20:20:25 +08:00

26 lines
854 B
Python

from collections.abc import Sequence
class PtyProcess:
exitstatus: int | None
@classmethod
def spawn(
cls,
argv: str | Sequence[str],
cwd: str | None = None,
env: dict[str, str] | None = None,
dimensions: tuple[int, int] = (24, 80),
backend: int | None = None,
) -> PtyProcess: ...
def isalive(self) -> bool: ...
def read(self, size: int = 1024) -> str: ...
def write(self, s: str) -> int: ...
def terminate(self, force: bool = False) -> bool: ...
def kill(self, sig: int | None = None) -> None: ...
def close(self, force: bool = False) -> None: ...
def wait(self) -> int | None: ...
def fileno(self) -> int: ...
def isatty(self) -> bool: ...
def setwinsize(self, rows: int, cols: int) -> None: ...
def getwinsize(self) -> tuple[int, int]: ...