|
| 1 | +from collections.abc import Callable |
| 2 | +import subprocess |
| 3 | +from typing import Any, IO, Literal, overload |
| 4 | + |
| 5 | +def set_font_settings_for_testing() -> None: ... |
| 6 | +def set_reproducibility_for_testing() -> None: ... |
| 7 | +def setup() -> None: ... |
| 8 | +@overload |
| 9 | +def subprocess_run_for_testing( |
| 10 | + command: list[str], |
| 11 | + env: dict[str, str] | None = ..., |
| 12 | + timeout: float | None = ..., |
| 13 | + stdout: int | IO[Any] | None = ..., |
| 14 | + stderr: int | IO[Any] | None = ..., |
| 15 | + check: bool = ..., |
| 16 | + *, |
| 17 | + text: Literal[True], |
| 18 | + capture_output: bool = ..., |
| 19 | +) -> subprocess.CompletedProcess[str]: ... |
| 20 | +@overload |
| 21 | +def subprocess_run_for_testing( |
| 22 | + command: list[str], |
| 23 | + env: dict[str, str] | None = ..., |
| 24 | + timeout: float | None = ..., |
| 25 | + stdout: int | IO[Any] | None = ..., |
| 26 | + stderr: int | IO[Any] | None = ..., |
| 27 | + check: bool = ..., |
| 28 | + text: Literal[False] = ..., |
| 29 | + capture_output: bool = ..., |
| 30 | +) -> subprocess.CompletedProcess[bytes]: ... |
| 31 | +@overload |
| 32 | +def subprocess_run_for_testing( |
| 33 | + command: list[str], |
| 34 | + env: dict[str, str] | None = ..., |
| 35 | + timeout: float | None = ..., |
| 36 | + stdout: int | IO[Any] | None = ..., |
| 37 | + stderr: int | IO[Any] | None = ..., |
| 38 | + check: bool = ..., |
| 39 | + text: bool = ..., |
| 40 | + capture_output: bool = ..., |
| 41 | +) -> subprocess.CompletedProcess[bytes] | subprocess.CompletedProcess[str]: ... |
| 42 | +def subprocess_run_helper( |
| 43 | + func: Callable[[], None], |
| 44 | + *args: Any, |
| 45 | + timeout: float, |
| 46 | + extra_env: dict[str, str] | None = ..., |
| 47 | +) -> subprocess.CompletedProcess[str]: ... |
| 48 | +def _check_for_pgf(texsystem: str) -> bool: ... |
| 49 | +def _has_tex_package(package: str) -> bool: ... |
0 commit comments