massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / distutils / cmd.pyi
1 from abc import abstractmethod
2 from distutils.dist import Distribution
3 from typing import Any, Callable, Iterable
4
5 class Command:
6     sub_commands: list[tuple[str, Callable[[Command], bool] | None]]
7     def __init__(self, dist: Distribution) -> None: ...
8     @abstractmethod
9     def initialize_options(self) -> None: ...
10     @abstractmethod
11     def finalize_options(self) -> None: ...
12     @abstractmethod
13     def run(self) -> None: ...
14     def announce(self, msg: str, level: int = ...) -> None: ...
15     def debug_print(self, msg: str) -> None: ...
16     def ensure_string(self, option: str, default: str | None = ...) -> None: ...
17     def ensure_string_list(self, option: str | list[str]) -> None: ...
18     def ensure_filename(self, option: str) -> None: ...
19     def ensure_dirname(self, option: str) -> None: ...
20     def get_command_name(self) -> str: ...
21     def set_undefined_options(self, src_cmd: str, *option_pairs: tuple[str, str]) -> None: ...
22     def get_finalized_command(self, command: str, create: int = ...) -> Command: ...
23     def reinitialize_command(self, command: Command | str, reinit_subcommands: int = ...) -> Command: ...
24     def run_command(self, command: str) -> None: ...
25     def get_sub_commands(self) -> list[str]: ...
26     def warn(self, msg: str) -> None: ...
27     def execute(self, func: Callable[..., Any], args: Iterable[Any], msg: str | None = ..., level: int = ...) -> None: ...
28     def mkpath(self, name: str, mode: int = ...) -> None: ...
29     def copy_file(
30         self,
31         infile: str,
32         outfile: str,
33         preserve_mode: int = ...,
34         preserve_times: int = ...,
35         link: str | None = ...,
36         level: Any = ...,
37     ) -> tuple[str, bool]: ...  # level is not used
38     def copy_tree(
39         self,
40         infile: str,
41         outfile: str,
42         preserve_mode: int = ...,
43         preserve_times: int = ...,
44         preserve_symlinks: int = ...,
45         level: Any = ...,
46     ) -> list[str]: ...  # level is not used
47     def move_file(self, src: str, dst: str, level: Any = ...) -> str: ...  # level is not used
48     def spawn(self, cmd: Iterable[str], search_path: int = ..., level: Any = ...) -> None: ...  # level is not used
49     def make_archive(
50         self,
51         base_name: str,
52         format: str,
53         root_dir: str | None = ...,
54         base_dir: str | None = ...,
55         owner: str | None = ...,
56         group: str | None = ...,
57     ) -> str: ...
58     def make_file(
59         self,
60         infiles: str | list[str] | tuple[str],
61         outfile: str,
62         func: Callable[..., Any],
63         args: list[Any],
64         exec_msg: str | None = ...,
65         skip_msg: str | None = ...,
66         level: Any = ...,
67     ) -> None: ...  # level is not used