|
1 | 1 | from _typeshed import Incomplete
|
2 | 2 | from collections.abc import Iterable, Iterator
|
3 |
| -from typing import Any, ClassVar, Literal, TypedDict |
| 3 | +from typing import Any, ClassVar, Literal, NoReturn, TypedDict |
4 | 4 | from typing_extensions import Self
|
5 | 5 |
|
6 |
| -from pkg_resources import Environment |
| 6 | +from pkg_resources import Distribution, Environment |
7 | 7 | from setuptools.package_index import PackageIndex
|
8 | 8 |
|
9 | 9 | from .. import Command, SetuptoolsDeprecationWarning
|
@@ -60,28 +60,28 @@ class easy_install(Command):
|
60 | 60 | def pseudo_tempname(self): ...
|
61 | 61 | def warn_deprecated_options(self) -> None: ...
|
62 | 62 | def check_site_dir(self) -> None: ...
|
63 |
| - def cant_write_to_target(self) -> None: ... |
| 63 | + def cant_write_to_target(self) -> NoReturn: ... |
64 | 64 | def check_pth_processing(self): ...
|
65 | 65 | def install_egg_scripts(self, dist) -> None: ...
|
66 | 66 | def add_output(self, path) -> None: ...
|
67 | 67 | def not_editable(self, spec) -> None: ...
|
68 | 68 | def check_editable(self, spec) -> None: ...
|
69 |
| - def easy_install(self, spec, deps: bool = False): ... |
70 |
| - def install_item(self, spec, download, tmpdir, deps, install_needed: bool = False): ... |
| 69 | + def easy_install(self, spec, deps: bool = False) -> Distribution | None: ... |
| 70 | + def install_item(self, spec, download, tmpdir, deps, install_needed: bool = False) -> Distribution | None: ... |
71 | 71 | def select_scheme(self, name) -> None: ...
|
72 | 72 | def process_distribution(self, requirement, dist, deps: bool = True, *info) -> None: ...
|
73 |
| - def should_unzip(self, dist): ... |
| 73 | + def should_unzip(self, dist) -> bool: ... |
74 | 74 | def maybe_move(self, spec, dist_filename, setup_base): ...
|
75 | 75 | def install_wrapper_scripts(self, dist) -> None: ...
|
76 | 76 | def install_script(self, dist, script_name, script_text, dev_path: Incomplete | None = None) -> None: ...
|
77 | 77 | def write_script(self, script_name, contents, mode: str = "t", blockers=()) -> None: ...
|
78 |
| - def install_eggs(self, spec, dist_filename, tmpdir): ... |
| 78 | + def install_eggs(self, spec, dist_filename, tmpdir) -> list[Distribution]: ... |
79 | 79 | def egg_distribution(self, egg_path): ...
|
80 | 80 | def install_egg(self, egg_path, tmpdir): ...
|
81 | 81 | def install_exe(self, dist_filename, tmpdir): ...
|
82 |
| - def exe_to_egg(self, dist_filename, egg_tmp): ... |
| 82 | + def exe_to_egg(self, dist_filename, egg_tmp) -> None: ... |
83 | 83 | def install_wheel(self, wheel_path, tmpdir): ...
|
84 |
| - def installation_report(self, req, dist, what: str = "Installed"): ... |
| 84 | + def installation_report(self, req, dist, what: str = "Installed") -> str: ... |
85 | 85 | def report_editable(self, spec, setup_script): ...
|
86 | 86 | def run_setup(self, setup_script, setup_base, args) -> None: ...
|
87 | 87 | def build_and_install(self, setup_script, setup_base): ...
|
|
0 commit comments