ai-content-maker/.venv/Lib/site-packages/matplotlib/testing/__init__.pyi

50 lines
1.5 KiB
Python

from collections.abc import Callable
import subprocess
from typing import Any, IO, Literal, overload
def set_font_settings_for_testing() -> None: ...
def set_reproducibility_for_testing() -> None: ...
def setup() -> None: ...
@overload
def subprocess_run_for_testing(
command: list[str],
env: dict[str, str] | None = ...,
timeout: float | None = ...,
stdout: int | IO[Any] | None = ...,
stderr: int | IO[Any] | None = ...,
check: bool = ...,
*,
text: Literal[True],
capture_output: bool = ...,
) -> subprocess.CompletedProcess[str]: ...
@overload
def subprocess_run_for_testing(
command: list[str],
env: dict[str, str] | None = ...,
timeout: float | None = ...,
stdout: int | IO[Any] | None = ...,
stderr: int | IO[Any] | None = ...,
check: bool = ...,
text: Literal[False] = ...,
capture_output: bool = ...,
) -> subprocess.CompletedProcess[bytes]: ...
@overload
def subprocess_run_for_testing(
command: list[str],
env: dict[str, str] | None = ...,
timeout: float | None = ...,
stdout: int | IO[Any] | None = ...,
stderr: int | IO[Any] | None = ...,
check: bool = ...,
text: bool = ...,
capture_output: bool = ...,
) -> subprocess.CompletedProcess[bytes] | subprocess.CompletedProcess[str]: ...
def subprocess_run_helper(
func: Callable[[], None],
*args: Any,
timeout: float,
extra_env: dict[str, str] | None = ...,
) -> subprocess.CompletedProcess[str]: ...
def _check_for_pgf(texsystem: str) -> bool: ...
def _has_tex_package(package: str) -> bool: ...