Add defaults for third-party stubs Q-T (#9959)

This commit is contained in:
Alex Waygood
2023-03-28 12:16:31 +01:00
committed by GitHub
parent 72456da2a3
commit b69b17c3d8
274 changed files with 3918 additions and 3735 deletions

View File

@@ -26,21 +26,21 @@ def fixup_namespace_packages(path_item: str) -> None: ...
class WorkingSet:
entries: list[str]
def __init__(self, entries: Iterable[str] | None = ...) -> None: ...
def __init__(self, entries: Iterable[str] | None = None) -> None: ...
def require(self, *requirements: _NestedStr) -> Sequence[Distribution]: ...
def run_script(self, requires: str, script_name: str) -> None: ...
def iter_entry_points(self, group: str, name: str | None = ...) -> Generator[EntryPoint, None, None]: ...
def iter_entry_points(self, group: str, name: str | None = None) -> Generator[EntryPoint, None, None]: ...
def add_entry(self, entry: str) -> None: ...
def __contains__(self, dist: Distribution) -> bool: ...
def __iter__(self) -> Generator[Distribution, None, None]: ...
def find(self, req: Requirement) -> Distribution | None: ...
def resolve(
self, requirements: Iterable[Requirement], env: Environment | None = ..., installer: _InstallerType | None = ...
self, requirements: Iterable[Requirement], env: Environment | None = None, installer: _InstallerType | None = None
) -> list[Distribution]: ...
def add(self, dist: Distribution, entry: str | None = ..., insert: bool = ..., replace: bool = ...) -> None: ...
def add(self, dist: Distribution, entry: str | None = None, insert: bool = True, replace: bool = False) -> None: ...
def subscribe(self, callback: Callable[[Distribution], object]) -> None: ...
def find_plugins(
self, plugin_env: Environment, full_env: Environment | None = ..., fallback: bool = ...
self, plugin_env: Environment, full_env: Environment | None = None, fallback: bool = True
) -> tuple[list[Distribution], dict[Distribution, Exception]]: ...
working_set: WorkingSet = ...
@@ -51,7 +51,9 @@ iter_entry_points = working_set.iter_entry_points
add_activation_listener = working_set.subscribe
class Environment:
def __init__(self, search_path: Sequence[str] | None = ..., platform: str | None = ..., python: str | None = ...) -> None: ...
def __init__(
self, search_path: Sequence[str] | None = None, platform: str | None = ..., python: str | None = ...
) -> None: ...
def __getitem__(self, project_name: str) -> list[Distribution]: ...
def __iter__(self) -> Generator[str, None, None]: ...
def add(self, dist: Distribution) -> None: ...
@@ -60,16 +62,16 @@ class Environment:
def __add__(self, other: Distribution | Environment) -> Environment: ...
def __iadd__(self, other: Distribution | Environment) -> Self: ...
@overload
def best_match(self, req: Requirement, working_set: WorkingSet, *, replace_conflicting: bool = ...) -> Distribution: ...
def best_match(self, req: Requirement, working_set: WorkingSet, *, replace_conflicting: bool = False) -> Distribution: ...
@overload
def best_match(
self, req: Requirement, working_set: WorkingSet, installer: Callable[[Requirement], _T], replace_conflicting: bool = ...
self, req: Requirement, working_set: WorkingSet, installer: Callable[[Requirement], _T], replace_conflicting: bool = False
) -> _T: ...
@overload
def obtain(self, requirement: Requirement) -> None: ...
@overload
def obtain(self, requirement: Requirement, installer: Callable[[Requirement], _T]) -> _T: ...
def scan(self, search_path: Sequence[str] | None = ...) -> None: ...
def scan(self, search_path: Sequence[str] | None = None) -> None: ...
class DistInfoDistribution(Distribution):
PKG_INFO: ClassVar[Literal["METADATA"]]
@@ -109,23 +111,23 @@ class EntryPoint:
self,
name: str,
module_name: str,
attrs: tuple[str, ...] = ...,
extras: tuple[str, ...] = ...,
dist: Distribution | None = ...,
attrs: tuple[str, ...] = (),
extras: tuple[str, ...] = (),
dist: Distribution | None = None,
) -> None: ...
@classmethod
def parse(cls, src: str, dist: Distribution | None = ...) -> EntryPoint: ...
def parse(cls, src: str, dist: Distribution | None = None) -> EntryPoint: ...
@classmethod
def parse_group(cls, group: str, lines: str | Sequence[str], dist: Distribution | None = ...) -> dict[str, EntryPoint]: ...
def parse_group(cls, group: str, lines: str | Sequence[str], dist: Distribution | None = None) -> dict[str, EntryPoint]: ...
@classmethod
def parse_map(
cls, data: dict[str, str | Sequence[str]] | str | Sequence[str], dist: Distribution | None = ...
cls, data: dict[str, str | Sequence[str]] | str | Sequence[str], dist: Distribution | None = None
) -> dict[str, EntryPoint]: ...
def load(self, require: bool = ..., env: Environment | None = ..., installer: _InstallerType | None = ...) -> Any: ...
def require(self, env: Environment | None = ..., installer: _InstallerType | None = ...) -> None: ...
def load(self, require: bool = True, env: Environment | None = ..., installer: _InstallerType | None = ...) -> Any: ...
def require(self, env: Environment | None = None, installer: _InstallerType | None = None) -> None: ...
def resolve(self) -> Any: ...
def find_distributions(path_item: str, only: bool = ...) -> Generator[Distribution, None, None]: ...
def find_distributions(path_item: str, only: bool = False) -> Generator[Distribution, None, None]: ...
@overload
def get_distribution(dist: _D) -> _D: ...
@overload
@@ -148,23 +150,23 @@ class Distribution(NullProvider, IResourceProvider, IMetadataProvider):
precedence: int
def __init__(
self,
location: str | None = ...,
metadata: _MetadataType = ...,
project_name: str | None = ...,
version: str | None = ...,
location: str | None = None,
metadata: _MetadataType = None,
project_name: str | None = None,
version: str | None = None,
py_version: str = ...,
platform: str | None = ...,
precedence: int = ...,
platform: str | None = None,
precedence: int = 3,
) -> None: ...
@classmethod
def from_location(
cls, location: str, basename: str, metadata: _MetadataType = ..., **kw: str | None | int
cls, location: str, basename: str, metadata: _MetadataType = None, **kw: str | None | int
) -> Distribution: ...
@classmethod
def from_filename(cls, filename: str, metadata: _MetadataType = ..., **kw: str | None | int) -> Distribution: ...
def activate(self, path: list[str] | None = ...) -> None: ...
def from_filename(cls, filename: str, metadata: _MetadataType = None, **kw: str | None | int) -> Distribution: ...
def activate(self, path: list[str] | None = None) -> None: ...
def as_requirement(self) -> Requirement: ...
def requires(self, extras: tuple[str, ...] = ...) -> list[Requirement]: ...
def requires(self, extras: tuple[str, ...] = ()) -> list[Requirement]: ...
def clone(self, **kw: str | int | None) -> Requirement: ...
def egg_name(self) -> str: ... # type: ignore[override] # supertype's egg_name is a variable, not a method
def __cmp__(self, other: Any) -> bool: ...
@@ -188,7 +190,7 @@ def resource_isdir(package_or_requirement: _PkgReqType, resource_name: str) -> b
def resource_listdir(package_or_requirement: _PkgReqType, resource_name: str) -> list[str]: ...
def resource_filename(package_or_requirement: _PkgReqType, resource_name: str) -> str: ...
def set_extraction_path(path: str) -> None: ...
def cleanup_resources(force: bool = ...) -> list[str]: ...
def cleanup_resources(force: bool = False) -> list[str]: ...
class IResourceManager:
def resource_exists(self, package_or_requirement: _PkgReqType, resource_name: str) -> bool: ...

View File

@@ -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

View File

@@ -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=...): ...

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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(): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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