massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / venv / __init__.pyi
1 import sys
2 from _typeshed import StrOrBytesPath
3 from types import SimpleNamespace
4 from typing import Sequence
5
6 class EnvBuilder:
7     system_site_packages: bool
8     clear: bool
9     symlinks: bool
10     upgrade: bool
11     with_pip: bool
12     prompt: str | None
13
14     if sys.version_info >= (3, 9):
15         def __init__(
16             self,
17             system_site_packages: bool = ...,
18             clear: bool = ...,
19             symlinks: bool = ...,
20             upgrade: bool = ...,
21             with_pip: bool = ...,
22             prompt: str | None = ...,
23             upgrade_deps: bool = ...,
24         ) -> None: ...
25     else:
26         def __init__(
27             self,
28             system_site_packages: bool = ...,
29             clear: bool = ...,
30             symlinks: bool = ...,
31             upgrade: bool = ...,
32             with_pip: bool = ...,
33             prompt: str | None = ...,
34         ) -> None: ...
35     def create(self, env_dir: StrOrBytesPath) -> None: ...
36     def clear_directory(self, path: StrOrBytesPath) -> None: ...  # undocumented
37     def ensure_directories(self, env_dir: StrOrBytesPath) -> SimpleNamespace: ...
38     def create_configuration(self, context: SimpleNamespace) -> None: ...
39     def symlink_or_copy(
40         self, src: StrOrBytesPath, dst: StrOrBytesPath, relative_symlinks_ok: bool = ...
41     ) -> None: ...  # undocumented
42     def setup_python(self, context: SimpleNamespace) -> None: ...
43     def _setup_pip(self, context: SimpleNamespace) -> None: ...  # undocumented
44     def setup_scripts(self, context: SimpleNamespace) -> None: ...
45     def post_setup(self, context: SimpleNamespace) -> None: ...
46     def replace_variables(self, text: str, context: SimpleNamespace) -> str: ...  # undocumented
47     def install_scripts(self, context: SimpleNamespace, path: str) -> None: ...
48     if sys.version_info >= (3, 9):
49         def upgrade_dependencies(self, context: SimpleNamespace) -> None: ...
50
51 if sys.version_info >= (3, 9):
52     def create(
53         env_dir: StrOrBytesPath,
54         system_site_packages: bool = ...,
55         clear: bool = ...,
56         symlinks: bool = ...,
57         with_pip: bool = ...,
58         prompt: str | None = ...,
59         upgrade_deps: bool = ...,
60     ) -> None: ...
61
62 else:
63     def create(
64         env_dir: StrOrBytesPath,
65         system_site_packages: bool = ...,
66         clear: bool = ...,
67         symlinks: bool = ...,
68         with_pip: bool = ...,
69         prompt: str | None = ...,
70     ) -> None: ...
71
72 def main(args: Sequence[str] | None = ...) -> None: ...