-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathutil.pyi
46 lines (44 loc) · 1.51 KB
/
util.pyi
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
from _typeshed import StrPath
from collections.abc import Callable, Container, Iterable, Mapping
from typing import Any
from typing_extensions import Literal
def get_platform() -> str: ...
def convert_path(pathname: str) -> str: ...
def change_root(new_root: str, pathname: str) -> 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[..., object], args: tuple[Any, ...], msg: str | None = ..., verbose: bool = ..., dry_run: bool = ...
) -> None: ...
def strtobool(val: str) -> Literal[0, 1]: ...
def byte_compile(
py_files: list[str],
optimize: int = ...,
force: bool = ...,
prefix: str | None = ...,
base_dir: str | None = ...,
verbose: bool = ...,
dry_run: bool = ...,
direct: bool | None = ...,
) -> None: ...
def rfc822_escape(header: str) -> str: ...
def run_2to3(
files: Iterable[str],
fixer_names: Iterable[str] | None = ...,
options: Mapping[str, Any] | None = ...,
explicit: Container[str] | None = ..., # unused
) -> None: ...
def copydir_run_2to3(
src: StrPath,
dest: StrPath,
template: str | None = ...,
fixer_names: Iterable[str] | None = ...,
options: Mapping[str, Any] | None = ...,
explicit: Container[str] | 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: ...