massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / distutils / util.pyi
1 from _typeshed import StrPath
2 from collections.abc import Callable, Container, Iterable, Mapping
3 from typing import Any, Tuple
4
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]: ...
11 def execute(
12     func: Callable[..., None], args: Tuple[Any, ...], msg: str | None = ..., verbose: bool = ..., dry_run: bool = ...
13 ) -> None: ...
14 def strtobool(val: str) -> bool: ...
15 def byte_compile(
16     py_files: list[str],
17     optimize: int = ...,
18     force: bool = ...,
19     prefix: str | None = ...,
20     base_dir: str | None = ...,
21     verbose: bool = ...,
22     dry_run: bool = ...,
23     direct: bool | None = ...,
24 ) -> None: ...
25 def rfc822_escape(header: str) -> str: ...
26 def run_2to3(
27     files: Iterable[str],
28     fixer_names: Iterable[str] | None = ...,
29     options: Mapping[str, Any] | None = ...,
30     explicit: Container[str] | None = ...,  # unused
31 ) -> None: ...
32 def copydir_run_2to3(
33     src: StrPath,
34     dest: StrPath,
35     template: str | None = ...,
36     fixer_names: Iterable[str] | None = ...,
37     options: Mapping[str, Any] | None = ...,
38     explicit: Container[str] | None = ...,
39 ) -> list[str]: ...
40
41 class Mixin2to3:
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: ...