2 from typing import IO, Any, BinaryIO, ContextManager, Iterable, Mapping, Text
3 from typing_extensions import Literal
5 from .core import BaseCommand
10 def __init__(self, input: BinaryIO, output: BinaryIO) -> None: ...
11 def __getattr__(self, x: str) -> Any: ...
12 def read(self, n: int = ...) -> bytes: ...
13 def readline(self, n: int = ...) -> bytes: ...
14 def readlines(self) -> list[bytes]: ...
15 def __iter__(self) -> Iterable[bytes]: ...
17 def make_input_stream(input: bytes | Text | IO[Any] | None, charset: Text) -> BinaryIO: ...
33 exc_info: Any | None = ...,
36 def output(self) -> Text: ...
38 def stdout(self) -> Text: ...
40 def stderr(self) -> Text: ...
44 env: Mapping[str, str]
48 self, charset: Text | None = ..., env: Mapping[str, str] | None = ..., echo_stdin: bool = ..., mix_stderr: bool = ...
50 def get_default_prog_name(self, cli: BaseCommand) -> str: ...
51 def make_env(self, overrides: Mapping[str, str] | None = ...) -> dict[str, str]: ...
53 self, input: bytes | Text | IO[Any] | None = ..., env: Mapping[str, str] | None = ..., color: bool = ...
54 ) -> ContextManager[tuple[io.BytesIO, io.BytesIO | Literal[False]]]: ...
58 args: str | Iterable[str] | None = ...,
59 input: bytes | Text | IO[Any] | None = ...,
60 env: Mapping[str, str] | None = ...,
61 catch_exceptions: bool = ...,
65 def isolated_filesystem(self) -> ContextManager[str]: ...