mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
More setuptools.command.easy_install definitions. (#7145)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz> Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from collections.abc import Iterator
|
||||
from typing import Any
|
||||
|
||||
from pkg_resources import Environment
|
||||
@@ -110,15 +111,15 @@ class CommandSpec(list[str]):
|
||||
options: Any
|
||||
split_args: Any
|
||||
@classmethod
|
||||
def best(cls): ...
|
||||
def best(cls) -> type[CommandSpec]: ...
|
||||
@classmethod
|
||||
def from_param(cls, param): ...
|
||||
def from_param(cls, param) -> CommandSpec: ...
|
||||
@classmethod
|
||||
def from_environment(cls): ...
|
||||
def from_environment(cls) -> CommandSpec: ...
|
||||
@classmethod
|
||||
def from_string(cls, string): ...
|
||||
def install_options(self, script_text) -> None: ...
|
||||
def as_header(self): ...
|
||||
def from_string(cls, string: str) -> CommandSpec: ...
|
||||
def install_options(self, script_text: str) -> None: ...
|
||||
def as_header(self) -> str: ...
|
||||
|
||||
class WindowsCommandSpec(CommandSpec):
|
||||
split_args: Any
|
||||
@@ -127,17 +128,17 @@ class ScriptWriter:
|
||||
template: Any
|
||||
command_spec_class: Any
|
||||
@classmethod
|
||||
def get_script_args(cls, dist, executable: Any | None = ..., wininst: bool = ...): ...
|
||||
def get_script_args(cls, dist, executable: Any | None = ..., wininst: bool = ...) -> Iterator[tuple[str, str]]: ...
|
||||
@classmethod
|
||||
def get_script_header(cls, script_text, executable: Any | None = ..., wininst: bool = ...): ...
|
||||
def get_script_header(cls, script_text, executable: Any | None = ..., wininst: bool = ...) -> str: ...
|
||||
@classmethod
|
||||
def get_args(cls, dist, header: Any | None = ...) -> None: ...
|
||||
def get_args(cls, dist, header: Any | None = ...) -> Iterator[tuple[str, str]]: ...
|
||||
@classmethod
|
||||
def get_writer(cls, force_windows): ...
|
||||
def get_writer(cls, force_windows: bool) -> type[ScriptWriter]: ...
|
||||
@classmethod
|
||||
def best(cls): ...
|
||||
def best(cls) -> type[ScriptWriter]: ...
|
||||
@classmethod
|
||||
def get_header(cls, script_text: str = ..., executable: Any | None = ...): ...
|
||||
def get_header(cls, script_text: str = ..., executable: Any | None = ...) -> str: ...
|
||||
|
||||
class WindowsScriptWriter(ScriptWriter):
|
||||
command_spec_class: Any
|
||||
|
||||
Reference in New Issue
Block a user