massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / distutils / cmd.pyi
1 # Stubs for distutils.cmd\r
2 \r
3 from typing import Callable, List, Tuple, Union, Optional, Iterable, Any, Text\r
4 from abc import abstractmethod\r
5 from distutils.dist import Distribution\r
6 \r
7 class Command:\r
8     sub_commands = ...  # type: List[Tuple[str, Union[Callable[[], bool], str, None]]]\r
9     def __init__(self, dist: Distribution) -> None: ...\r
10     @abstractmethod\r
11     def initialize_options(self) -> None: ...\r
12     @abstractmethod\r
13     def finalize_options(self) -> None: ...\r
14     @abstractmethod\r
15     def run(self) -> None: ...\r
16 \r
17     def announce(self, msg: Text, level: int = ...) -> None: ...\r
18     def debug_print(self, msg: Text) -> None: ...\r
19 \r
20     def ensure_string(self, option: str, default: Optional[str] = ...) -> None: ...\r
21     def ensure_string_list(self, option: Union[str, List[str]]) -> None: ...\r
22     def ensure_filename(self, option: str) -> None: ...\r
23     def ensure_dirname(self, option: str) -> None: ...\r
24 \r
25     def get_command_name(self) -> str: ...\r
26     def set_undefined_options(self, src_cmd: Text, *option_pairs: Tuple[str, str]) -> None: ...\r
27     def get_finalized_command(self, command: Text, create: int = ...) -> Command: ...\r
28     def reinitialize_command(self, command: Union[Command, Text], reinit_subcommands: int = ...) -> Command: ...\r
29     def run_command(self, command: Text) -> None: ...\r
30     def get_sub_commands(self) -> List[str]: ...\r
31 \r
32     def warn(self, msg: Text) -> None: ...\r
33     def execute(self, func: Callable[..., Any], args: Iterable[Any], msg: Optional[Text] = ..., level: int = ...) -> None: ...\r
34     def mkpath(self, name: str, mode: int = ...) -> None: ...\r
35     def copy_file(self, infile: str, outfile: str, preserve_mode: int = ..., preserve_times: int = ..., link: Optional[str] = ..., level: Any = ...) -> Tuple[str, bool]: ...  # level is not used\r
36     def copy_tree(self, infile: str, outfile: str, preserve_mode: int = ..., preserve_times: int = ..., preserve_symlinks: int = ..., level: Any = ...) -> List[str]: ...  # level is not used\r
37     def move_file(self, src: str, dest: str, level: Any = ...) -> str: ...  # level is not used\r
38     def spawn(self, cmd: Iterable[str], search_path: int = ..., level: Any = ...) -> None: ...  # level is not used\r
39     def make_archive(self, base_name: str, format: str, root_dir: Optional[str] = ..., base_dir: Optional[str] = ..., owner: Optional[str] = ..., group: Optional[str] = ...) -> str: ...\r
40     def make_file(self, infiles: Union[str, List[str], Tuple[str]], outfile: str, func: Callable[..., Any], args: List[Any], exec_msg: Optional[str] = ..., skip_msg: Optional[str] = ..., level: Any = ...) -> None: ...  # level is not used\r