mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 11:51:28 +08:00
Add defaults for third-party stubs Q-T (#9959)
This commit is contained in:
@@ -13,7 +13,7 @@ __version__: str
|
||||
|
||||
class PackageFinder:
|
||||
@classmethod
|
||||
def find(cls, where: str = ..., exclude: Iterable[str] = ..., include: Iterable[str] = ...) -> list[str]: ...
|
||||
def find(cls, where: str = ".", exclude: Iterable[str] = (), include: Iterable[str] = ("*",)) -> list[str]: ...
|
||||
|
||||
class PEP420PackageFinder(PackageFinder): ...
|
||||
|
||||
@@ -67,7 +67,7 @@ class Command(_Command):
|
||||
command_consumes_arguments: bool
|
||||
def __init__(self, dist: Distribution, **kw: Any) -> None: ...
|
||||
def ensure_string_list(self, option: str | list[str]) -> None: ...
|
||||
def reinitialize_command(self, command: _Command | str, reinit_subcommands: int = ..., **kw: Any) -> _Command: ...
|
||||
def reinitialize_command(self, command: _Command | str, reinit_subcommands: int = 0, **kw: Any) -> _Command: ...
|
||||
@abstractmethod
|
||||
def initialize_options(self) -> None: ...
|
||||
@abstractmethod
|
||||
|
||||
@@ -6,7 +6,7 @@ from ._distutils.errors import DistutilsError
|
||||
class UnrecognizedFormat(DistutilsError): ...
|
||||
|
||||
def default_filter(src, dst): ...
|
||||
def unpack_archive(filename, extract_dir, progress_filter=..., drivers: Incomplete | None = ...) -> None: ...
|
||||
def unpack_archive(filename, extract_dir, progress_filter=..., drivers: Incomplete | None = None) -> None: ...
|
||||
def unpack_directory(filename, extract_dir, progress_filter=...) -> None: ...
|
||||
def unpack_zipfile(filename, extract_dir, progress_filter=...) -> None: ...
|
||||
def unpack_tarfile(filename, extract_dir, progress_filter=...): ...
|
||||
|
||||
@@ -13,26 +13,26 @@ class Distribution(dist.Distribution):
|
||||
def patch(cls) -> None: ...
|
||||
|
||||
class _BuildMetaBackend:
|
||||
def run_setup(self, setup_script: str = ...) -> None: ...
|
||||
def get_requires_for_build_wheel(self, config_settings: Mapping[str, Any] | None = ...) -> list[str]: ...
|
||||
def get_requires_for_build_sdist(self, config_settings: Mapping[str, Any] | None = ...) -> list[str]: ...
|
||||
def run_setup(self, setup_script: str = "setup.py") -> None: ...
|
||||
def get_requires_for_build_wheel(self, config_settings: Mapping[str, Any] | None = None) -> list[str]: ...
|
||||
def get_requires_for_build_sdist(self, config_settings: Mapping[str, Any] | None = None) -> list[str]: ...
|
||||
def prepare_metadata_for_build_wheel(
|
||||
self, metadata_directory: str, config_settings: Mapping[str, Any] | None = ...
|
||||
self, metadata_directory: str, config_settings: Mapping[str, Any] | None = None
|
||||
) -> str: ...
|
||||
def build_wheel(
|
||||
self, wheel_directory: str, config_settings: Mapping[str, Any] | None = ..., metadata_directory: str | None = ...
|
||||
self, wheel_directory: str, config_settings: Mapping[str, Any] | None = None, metadata_directory: str | None = None
|
||||
) -> str: ...
|
||||
def build_sdist(self, sdist_directory: str, config_settings: Mapping[str, Any] | None = ...) -> str: ...
|
||||
def build_sdist(self, sdist_directory: str, config_settings: Mapping[str, Any] | None = None) -> str: ...
|
||||
def build_editable(
|
||||
self, wheel_directory: str, config_settings: Mapping[str, Any] | None = ..., metadata_directory: str | None = ...
|
||||
self, wheel_directory: str, config_settings: Mapping[str, Any] | None = None, metadata_directory: str | None = None
|
||||
) -> str: ...
|
||||
def get_requires_for_build_editable(self, config_settings: Mapping[str, Any] | None = ...) -> list[str]: ...
|
||||
def get_requires_for_build_editable(self, config_settings: Mapping[str, Any] | None = None) -> list[str]: ...
|
||||
def prepare_metadata_for_build_editable(
|
||||
self, metadata_directory: str, config_settings: Mapping[str, Any] | None = ...
|
||||
self, metadata_directory: str, config_settings: Mapping[str, Any] | None = None
|
||||
) -> str: ...
|
||||
|
||||
class _BuildMetaLegacyBackend(_BuildMetaBackend):
|
||||
def run_setup(self, setup_script: str = ...) -> None: ...
|
||||
def run_setup(self, setup_script: str = "setup.py") -> None: ...
|
||||
|
||||
_BACKEND: _BuildMetaBackend = ...
|
||||
get_requires_for_build_wheel = _BACKEND.get_requires_for_build_wheel
|
||||
|
||||
@@ -27,20 +27,20 @@ class build_ext(_build_ext):
|
||||
def build_extension(self, ext) -> None: ...
|
||||
def links_to_dynamic(self, ext): ...
|
||||
def get_outputs(self): ...
|
||||
def write_stub(self, output_dir, ext, compile: bool = ...) -> None: ...
|
||||
def write_stub(self, output_dir, ext, compile: bool = False) -> None: ...
|
||||
|
||||
def link_shared_object(
|
||||
self,
|
||||
objects,
|
||||
output_libname,
|
||||
output_dir: Incomplete | None = ...,
|
||||
libraries: Incomplete | None = ...,
|
||||
library_dirs: Incomplete | None = ...,
|
||||
runtime_library_dirs: Incomplete | None = ...,
|
||||
export_symbols: Incomplete | None = ...,
|
||||
debug: int = ...,
|
||||
extra_preargs: Incomplete | None = ...,
|
||||
extra_postargs: Incomplete | None = ...,
|
||||
build_temp: Incomplete | None = ...,
|
||||
target_lang: Incomplete | None = ...,
|
||||
output_dir: Incomplete | None = None,
|
||||
libraries: Incomplete | None = None,
|
||||
library_dirs: Incomplete | None = None,
|
||||
runtime_library_dirs: Incomplete | None = None,
|
||||
export_symbols: Incomplete | None = None,
|
||||
debug: int = 0,
|
||||
extra_preargs: Incomplete | None = None,
|
||||
extra_postargs: Incomplete | None = None,
|
||||
build_temp: Incomplete | None = None,
|
||||
target_lang: Incomplete | None = None,
|
||||
) -> None: ...
|
||||
|
||||
@@ -51,7 +51,7 @@ class easy_install(Command):
|
||||
def finalize_options(self) -> None: ...
|
||||
def expand_basedirs(self) -> None: ...
|
||||
def expand_dirs(self) -> None: ...
|
||||
def run(self, show_deprecation: bool = ...) -> None: ...
|
||||
def run(self, show_deprecation: bool = True) -> None: ...
|
||||
def pseudo_tempname(self): ...
|
||||
def warn_deprecated_options(self) -> None: ...
|
||||
def check_site_dir(self) -> None: ...
|
||||
@@ -61,22 +61,22 @@ class easy_install(Command):
|
||||
def add_output(self, path) -> None: ...
|
||||
def not_editable(self, spec) -> None: ...
|
||||
def check_editable(self, spec) -> None: ...
|
||||
def easy_install(self, spec, deps: bool = ...): ...
|
||||
def install_item(self, spec, download, tmpdir, deps, install_needed: bool = ...): ...
|
||||
def easy_install(self, spec, deps: bool = False): ...
|
||||
def install_item(self, spec, download, tmpdir, deps, install_needed: bool = False): ...
|
||||
def select_scheme(self, name) -> None: ...
|
||||
def process_distribution(self, requirement, dist, deps: bool = ..., *info) -> None: ...
|
||||
def process_distribution(self, requirement, dist, deps: bool = True, *info) -> None: ...
|
||||
def should_unzip(self, dist): ...
|
||||
def maybe_move(self, spec, dist_filename, setup_base): ...
|
||||
def install_wrapper_scripts(self, dist) -> None: ...
|
||||
def install_script(self, dist, script_name, script_text, dev_path: Incomplete | None = ...) -> None: ...
|
||||
def write_script(self, script_name, contents, mode: str = ..., blockers=...) -> None: ...
|
||||
def install_script(self, dist, script_name, script_text, dev_path: Incomplete | None = None) -> None: ...
|
||||
def write_script(self, script_name, contents, mode: str = "t", blockers=()) -> None: ...
|
||||
def install_eggs(self, spec, dist_filename, tmpdir): ...
|
||||
def egg_distribution(self, egg_path): ...
|
||||
def install_egg(self, egg_path, tmpdir): ...
|
||||
def install_exe(self, dist_filename, tmpdir): ...
|
||||
def exe_to_egg(self, dist_filename, egg_tmp): ...
|
||||
def install_wheel(self, wheel_path, tmpdir): ...
|
||||
def installation_report(self, req, dist, what: str = ...): ...
|
||||
def installation_report(self, req, dist, what: str = "Installed"): ...
|
||||
def report_editable(self, spec, setup_script): ...
|
||||
def run_setup(self, setup_script, setup_base, args) -> None: ...
|
||||
def build_and_install(self, setup_script, setup_base): ...
|
||||
@@ -96,7 +96,7 @@ class PthDistributions(Environment):
|
||||
filename: Any
|
||||
sitedirs: Any
|
||||
basedir: Any
|
||||
def __init__(self, filename, sitedirs=...) -> None: ...
|
||||
def __init__(self, filename, sitedirs=()) -> None: ...
|
||||
def save(self) -> None: ...
|
||||
def add(self, dist) -> None: ...
|
||||
def remove(self, dist) -> None: ...
|
||||
@@ -127,17 +127,17 @@ class ScriptWriter:
|
||||
template: Any
|
||||
command_spec_class: Any
|
||||
@classmethod
|
||||
def get_script_args(cls, dist, executable: Incomplete | None = ..., wininst: bool = ...) -> Iterator[tuple[str, str]]: ...
|
||||
def get_script_args(cls, dist, executable: Incomplete | None = None, wininst: bool = False) -> Iterator[tuple[str, str]]: ...
|
||||
@classmethod
|
||||
def get_script_header(cls, script_text, executable: Incomplete | None = ..., wininst: bool = ...) -> str: ...
|
||||
def get_script_header(cls, script_text, executable: Incomplete | None = None, wininst: bool = False) -> str: ...
|
||||
@classmethod
|
||||
def get_args(cls, dist, header: Incomplete | None = ...) -> Iterator[tuple[str, str]]: ...
|
||||
def get_args(cls, dist, header: Incomplete | None = None) -> Iterator[tuple[str, str]]: ...
|
||||
@classmethod
|
||||
def get_writer(cls, force_windows: bool) -> type[ScriptWriter]: ...
|
||||
@classmethod
|
||||
def best(cls) -> type[ScriptWriter]: ...
|
||||
@classmethod
|
||||
def get_header(cls, script_text: str = ..., executable: Incomplete | None = ...) -> str: ...
|
||||
def get_header(cls, script_text: str = "", executable: Incomplete | None = None) -> str: ...
|
||||
|
||||
class WindowsScriptWriter(ScriptWriter):
|
||||
command_spec_class: Any
|
||||
|
||||
@@ -34,7 +34,7 @@ class egg_info(InfoCommon, Command):
|
||||
def tag_svn_revision(self, value) -> None: ...
|
||||
def save_version_info(self, filename) -> None: ...
|
||||
def finalize_options(self) -> None: ...
|
||||
def write_or_delete_file(self, what, filename, data, force: bool = ...) -> None: ...
|
||||
def write_or_delete_file(self, what, filename, data, force: bool = False) -> None: ...
|
||||
def write_file(self, what, filename, data) -> None: ...
|
||||
def delete_file(self, filename) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
@@ -43,7 +43,7 @@ class egg_info(InfoCommon, Command):
|
||||
def check_broken_egg_info(self) -> None: ...
|
||||
|
||||
class FileList(_FileList):
|
||||
def __init__(self, warn=..., debug_print=..., ignore_egg_info_dir: bool = ...) -> None: ...
|
||||
def __init__(self, warn=None, debug_print=None, ignore_egg_info_dir: bool = False) -> None: ...
|
||||
def process_template_line(self, line) -> None: ...
|
||||
def include(self, pattern): ...
|
||||
def exclude(self, pattern): ...
|
||||
@@ -79,7 +79,7 @@ def write_requirements(cmd, basename, filename) -> None: ...
|
||||
def write_setup_requirements(cmd, basename, filename) -> None: ...
|
||||
def write_toplevel_names(cmd, basename, filename) -> None: ...
|
||||
def overwrite_arg(cmd, basename, filename) -> None: ...
|
||||
def write_arg(cmd, basename, filename, force: bool = ...) -> None: ...
|
||||
def write_arg(cmd, basename, filename, force: bool = False) -> None: ...
|
||||
def write_entries(cmd, basename, filename) -> None: ...
|
||||
def get_pkg_info_revision(): ...
|
||||
|
||||
|
||||
@@ -4,6 +4,6 @@ class install_lib(orig.install_lib):
|
||||
def run(self) -> None: ...
|
||||
def get_exclusions(self): ...
|
||||
def copy_tree(
|
||||
self, infile, outfile, preserve_mode: int = ..., preserve_times: int = ..., preserve_symlinks: int = ..., level: int = ...
|
||||
self, infile, outfile, preserve_mode: int = 1, preserve_times: int = 1, preserve_symlinks: int = 0, level: int = 1
|
||||
): ...
|
||||
def get_outputs(self): ...
|
||||
|
||||
@@ -7,4 +7,4 @@ class install_scripts(orig.install_scripts):
|
||||
def initialize_options(self) -> None: ...
|
||||
outfiles: Any
|
||||
def run(self) -> None: ...
|
||||
def write_script(self, script_name, contents, mode: str = ..., *ignored) -> None: ...
|
||||
def write_script(self, script_name, contents, mode: str = "t", *ignored) -> None: ...
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
from .._distutils.command import sdist as orig
|
||||
|
||||
def walk_revctrl(dirname: str = ...) -> None: ...
|
||||
def walk_revctrl(dirname: str = "") -> None: ...
|
||||
|
||||
class sdist(orig.sdist):
|
||||
user_options: Any
|
||||
|
||||
@@ -3,8 +3,8 @@ from typing import Any
|
||||
|
||||
from setuptools import Command
|
||||
|
||||
def config_file(kind: str = ...): ...
|
||||
def edit_config(filename, settings, dry_run: bool = ...) -> None: ...
|
||||
def config_file(kind: str = "local"): ...
|
||||
def edit_config(filename, settings, dry_run: bool = False) -> None: ...
|
||||
|
||||
class option_base(Command):
|
||||
user_options: Any
|
||||
|
||||
@@ -11,7 +11,7 @@ _T = TypeVar("_T")
|
||||
|
||||
class ScanningLoader(TestLoader):
|
||||
def __init__(self) -> None: ...
|
||||
def loadTestsFromModule(self, module: ModuleType, pattern: Incomplete | None = ...) -> list[TestSuite]: ... # type: ignore[override]
|
||||
def loadTestsFromModule(self, module: ModuleType, pattern: Incomplete | None = None) -> list[TestSuite]: ... # type: ignore[override]
|
||||
|
||||
class NonDataProperty(Generic[_T]):
|
||||
fget: Callable[..., _T]
|
||||
@@ -33,7 +33,7 @@ class test(Command):
|
||||
@NonDataProperty
|
||||
def test_args(self) -> list[str]: ...
|
||||
def with_project_on_sys_path(self, func) -> None: ...
|
||||
def project_on_sys_path(self, include_dists=...): ...
|
||||
def project_on_sys_path(self, include_dists=[]): ...
|
||||
@staticmethod
|
||||
def paths_on_pythonpath(paths) -> None: ...
|
||||
@staticmethod
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
def read_configuration(filepath, find_others: bool = ..., ignore_option_errors: bool = ...): ...
|
||||
def parse_configuration(distribution, command_options, ignore_option_errors: bool = ...): ...
|
||||
def read_configuration(filepath, find_others: bool = False, ignore_option_errors: bool = False): ...
|
||||
def parse_configuration(distribution, command_options, ignore_option_errors: bool = False): ...
|
||||
|
||||
@@ -6,15 +6,15 @@ class Require:
|
||||
name,
|
||||
requested_version,
|
||||
module,
|
||||
homepage: str = ...,
|
||||
attribute: Incomplete | None = ...,
|
||||
format: Incomplete | None = ...,
|
||||
homepage: str = "",
|
||||
attribute: Incomplete | None = None,
|
||||
format: Incomplete | None = None,
|
||||
) -> None: ...
|
||||
def full_name(self): ...
|
||||
def version_ok(self, version): ...
|
||||
def get_version(self, paths: Incomplete | None = ..., default: str = ...): ...
|
||||
def is_present(self, paths: Incomplete | None = ...): ...
|
||||
def is_current(self, paths: Incomplete | None = ...): ...
|
||||
def get_version(self, paths: Incomplete | None = None, default: str = "unknown"): ...
|
||||
def is_present(self, paths: Incomplete | None = None): ...
|
||||
def is_current(self, paths: Incomplete | None = None): ...
|
||||
|
||||
def get_module_constant(module, symbol, default: int = ..., paths: Incomplete | None = ...): ...
|
||||
def extract_constant(code, symbol, default: int = ...): ...
|
||||
def get_module_constant(module, symbol, default: int = -1, paths: Incomplete | None = None): ...
|
||||
def extract_constant(code, symbol, default: int = -1): ...
|
||||
|
||||
@@ -13,7 +13,7 @@ class Distribution(_Distribution):
|
||||
def __init__(self, attrs: MutableMapping[str, Any] | None = None) -> None: ...
|
||||
def warn_dash_deprecation(self, opt: str, section: str) -> str: ...
|
||||
def make_option_lowercase(self, opt: str, section: str) -> str: ...
|
||||
def parse_config_files(self, filenames: Iterable[str] | None = ..., ignore_option_errors: bool = ...) -> None: ...
|
||||
def parse_config_files(self, filenames: Iterable[str] | None = None, ignore_option_errors: bool = False) -> None: ...
|
||||
def fetch_build_eggs(self, requires: str | Iterable[str]): ...
|
||||
def get_egg_cache_dir(self) -> str: ...
|
||||
def fetch_build_egg(self, req): ...
|
||||
|
||||
@@ -5,13 +5,13 @@ class VendorImporter:
|
||||
root_name: Any
|
||||
vendored_names: Any
|
||||
vendor_pkg: Any
|
||||
def __init__(self, root_name, vendored_names=..., vendor_pkg: Incomplete | None = ...) -> None: ...
|
||||
def __init__(self, root_name, vendored_names=(), vendor_pkg: Incomplete | None = None) -> None: ...
|
||||
@property
|
||||
def search_path(self) -> None: ...
|
||||
def load_module(self, fullname): ...
|
||||
def create_module(self, spec): ...
|
||||
def exec_module(self, module) -> None: ...
|
||||
def find_spec(self, fullname, path: Incomplete | None = ..., target: Incomplete | None = ...): ...
|
||||
def find_spec(self, fullname, path: Incomplete | None = None, target: Incomplete | None = None): ...
|
||||
def install(self) -> None: ...
|
||||
|
||||
names: Any
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
def glob(pathname, recursive: bool = ...): ...
|
||||
def iglob(pathname, recursive: bool = ...): ...
|
||||
def glob(pathname, recursive: bool = False): ...
|
||||
def iglob(pathname, recursive: bool = False): ...
|
||||
def escape(pathname): ...
|
||||
|
||||
@@ -12,9 +12,9 @@ class PlatformInfo:
|
||||
def target_cpu(self): ...
|
||||
def target_is_x86(self): ...
|
||||
def current_is_x86(self): ...
|
||||
def current_dir(self, hidex86: bool = ..., x64: bool = ...): ...
|
||||
def target_dir(self, hidex86: bool = ..., x64: bool = ...): ...
|
||||
def cross_dir(self, forcex86: bool = ...): ...
|
||||
def current_dir(self, hidex86: bool = False, x64: bool = False): ...
|
||||
def target_dir(self, hidex86: bool = False, x64: bool = False): ...
|
||||
def cross_dir(self, forcex86: bool = False): ...
|
||||
|
||||
class RegistryInfo:
|
||||
HKEYS: Incomplete
|
||||
@@ -38,7 +38,7 @@ class RegistryInfo:
|
||||
def netfx_sdk(self): ...
|
||||
@property
|
||||
def windows_kits_roots(self): ...
|
||||
def microsoft(self, key, x86: bool = ...): ...
|
||||
def microsoft(self, key, x86: bool = False): ...
|
||||
def lookup(self, key, name): ...
|
||||
|
||||
class SystemInfo:
|
||||
@@ -49,7 +49,7 @@ class SystemInfo:
|
||||
pi: Incomplete
|
||||
known_vs_paths: Incomplete
|
||||
vs_ver: Incomplete
|
||||
def __init__(self, registry_info, vc_ver: Incomplete | None = ...) -> None: ...
|
||||
def __init__(self, registry_info, vc_ver: Incomplete | None = None) -> None: ...
|
||||
def find_reg_vs_vers(self): ...
|
||||
def find_programdata_vs_vers(self): ...
|
||||
@property
|
||||
@@ -87,7 +87,7 @@ class EnvironmentInfo:
|
||||
pi: Incomplete
|
||||
ri: Incomplete
|
||||
si: Incomplete
|
||||
def __init__(self, arch, vc_ver: Incomplete | None = ..., vc_min_ver: int = ...) -> None: ...
|
||||
def __init__(self, arch, vc_ver: Incomplete | None = None, vc_min_ver: int = 0) -> None: ...
|
||||
@property
|
||||
def vs_ver(self): ...
|
||||
@property
|
||||
@@ -132,4 +132,4 @@ class EnvironmentInfo:
|
||||
def FSharp(self): ...
|
||||
@property
|
||||
def VCRuntimeRedist(self): ...
|
||||
def return_env(self, exists: bool = ...): ...
|
||||
def return_env(self, exists: bool = True): ...
|
||||
|
||||
@@ -5,9 +5,9 @@ from typing import Any
|
||||
from pkg_resources import Environment
|
||||
|
||||
def parse_bdist_wininst(name): ...
|
||||
def distros_for_url(url, metadata: Incomplete | None = ...) -> None: ...
|
||||
def distros_for_url(url, metadata: Incomplete | None = None) -> None: ...
|
||||
def interpret_distro_name(
|
||||
location, basename, metadata, py_version: Incomplete | None = ..., precedence=..., platform: Incomplete | None = ...
|
||||
location, basename, metadata, py_version: Incomplete | None = None, precedence=1, platform: Incomplete | None = None
|
||||
) -> None: ...
|
||||
|
||||
class ContentChecker:
|
||||
@@ -36,18 +36,24 @@ class PackageIndex(Environment):
|
||||
to_scan: Any
|
||||
opener: Any
|
||||
def __init__(
|
||||
self, index_url: str = ..., hosts=..., ca_bundle: Incomplete | None = ..., verify_ssl: bool = ..., *args, **kw
|
||||
self,
|
||||
index_url: str = "https://pypi.org/simple/",
|
||||
hosts=("*",),
|
||||
ca_bundle: Incomplete | None = None,
|
||||
verify_ssl: bool = True,
|
||||
*args,
|
||||
**kw,
|
||||
) -> None: ...
|
||||
def process_url(self, url, retrieve: bool = ...) -> None: ...
|
||||
def process_filename(self, fn, nested: bool = ...) -> None: ...
|
||||
def url_ok(self, url, fatal: bool = ...): ...
|
||||
def process_url(self, url, retrieve: bool = False) -> None: ...
|
||||
def process_filename(self, fn, nested: bool = False) -> None: ...
|
||||
def url_ok(self, url, fatal: bool = False): ...
|
||||
def scan_egg_links(self, search_path) -> None: ...
|
||||
def scan_egg_link(self, path, entry) -> None: ...
|
||||
def process_index(self, url, page): ...
|
||||
def need_version_info(self, url) -> None: ...
|
||||
def scan_all(self, msg: Incomplete | None = ..., *args) -> None: ...
|
||||
def scan_all(self, msg: Incomplete | None = None, *args) -> None: ...
|
||||
def find_packages(self, requirement) -> None: ...
|
||||
def obtain(self, requirement, installer: Incomplete | None = ...): ...
|
||||
def obtain(self, requirement, installer: Incomplete | None = None): ...
|
||||
def check_hash(self, checker, filename, tfp) -> None: ...
|
||||
def add_find_links(self, urls) -> None: ...
|
||||
def prescan(self) -> None: ...
|
||||
@@ -57,16 +63,16 @@ class PackageIndex(Environment):
|
||||
self,
|
||||
requirement,
|
||||
tmpdir,
|
||||
force_scan: bool = ...,
|
||||
source: bool = ...,
|
||||
develop_ok: bool = ...,
|
||||
local_index: Incomplete | None = ...,
|
||||
force_scan: bool = False,
|
||||
source: bool = False,
|
||||
develop_ok: bool = False,
|
||||
local_index: Incomplete | None = None,
|
||||
): ...
|
||||
def fetch(self, requirement, tmpdir, force_scan: bool = ..., source: bool = ...): ...
|
||||
def fetch(self, requirement, tmpdir, force_scan: bool = False, source: bool = False): ...
|
||||
def gen_setup(self, filename, fragment, tmpdir): ...
|
||||
dl_blocksize: int
|
||||
def reporthook(self, url, filename, blocknum, blksize, size) -> None: ...
|
||||
def open_url(self, url, warning: Incomplete | None = ...): ...
|
||||
def open_url(self, url, warning: Incomplete | None = None): ...
|
||||
def scan_url(self, url) -> None: ...
|
||||
def debug(self, msg, *args) -> None: ...
|
||||
def info(self, msg, *args) -> None: ...
|
||||
|
||||
@@ -28,7 +28,7 @@ class DirectorySandbox(AbstractSandbox):
|
||||
write_ops: Any
|
||||
def __init__(self, sandbox, exceptions=...) -> None: ...
|
||||
def tmpnam(self) -> None: ...
|
||||
def open(self, file, flags, mode: int = ..., *args, **kw): ...
|
||||
def open(self, file, flags, mode: int = 511, *args, **kw): ...
|
||||
|
||||
class SandboxViolation(DistutilsError):
|
||||
tmpl: Any
|
||||
|
||||
Reference in New Issue
Block a user