1 from _typeshed import StrPath
2 from collections.abc import Callable, Container, Iterable, Mapping
3 from typing import Any, Tuple
5 def get_platform() -> str: ...
6 def convert_path(pathname: str) -> str: ...
7 def change_root(new_root: str, pathname: str) -> str: ...
8 def check_environ() -> None: ...
9 def subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...
10 def split_quoted(s: str) -> list[str]: ...
12 func: Callable[..., None], args: Tuple[Any, ...], msg: str | None = ..., verbose: bool = ..., dry_run: bool = ...
14 def strtobool(val: str) -> bool: ...
19 prefix: str | None = ...,
20 base_dir: str | None = ...,
23 direct: bool | None = ...,
25 def rfc822_escape(header: str) -> str: ...
28 fixer_names: Iterable[str] | None = ...,
29 options: Mapping[str, Any] | None = ...,
30 explicit: Container[str] | None = ..., # unused
35 template: str | None = ...,
36 fixer_names: Iterable[str] | None = ...,
37 options: Mapping[str, Any] | None = ...,
38 explicit: Container[str] | None = ...,
42 fixer_names: Iterable[str] | None
43 options: Mapping[str, Any] | None
44 explicit: Container[str] | None
45 def run_2to3(self, files: Iterable[str]) -> None: ...