-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathutil.pyi
More file actions
53 lines (50 loc) · 1.7 KB
/
util.pyi
File metadata and controls
53 lines (50 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from _typeshed import StrPath, Unused
from collections.abc import Callable, Container, Iterable, Mapping
from typing import Any, Literal
from typing_extensions import TypeVarTuple, Unpack
_Ts = TypeVarTuple("_Ts")
def get_host_platform() -> str: ...
def get_platform() -> str: ...
def convert_path(pathname: str) -> str: ...
def change_root(new_root: StrPath, pathname: StrPath) -> str: ...
def check_environ() -> None: ...
def subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...
def split_quoted(s: str) -> list[str]: ...
def execute(
func: Callable[[Unpack[_Ts]], Unused],
args: tuple[Unpack[_Ts]],
msg: str | None = None,
verbose: bool | Literal[0, 1] = 0,
dry_run: bool | Literal[0, 1] = 0,
) -> None: ...
def strtobool(val: str) -> Literal[0, 1]: ...
def byte_compile(
py_files: list[str],
optimize: int = 0,
force: bool | Literal[0, 1] = 0,
prefix: str | None = None,
base_dir: str | None = None,
verbose: bool | Literal[0, 1] = 1,
dry_run: bool | Literal[0, 1] = 0,
direct: bool | None = None,
) -> None: ...
def rfc822_escape(header: str) -> str: ...
def run_2to3(
files: Iterable[str],
fixer_names: Iterable[str] | None = None,
options: Mapping[str, Any] | None = None,
explicit: Unused = None,
) -> None: ...
def copydir_run_2to3(
src: StrPath,
dest: StrPath,
template: str | None = None,
fixer_names: Iterable[str] | None = None,
options: Mapping[str, Any] | None = None,
explicit: Container[str] | None = None,
) -> list[str]: ...
class Mixin2to3:
fixer_names: Iterable[str] | None
options: Mapping[str, Any] | None
explicit: Container[str] | None
def run_2to3(self, files: Iterable[str]) -> None: ...