diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index 724b2170b..8b7ea28be 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1,4 +1,4 @@ -version = "75.5.*" +version = "75.6.*" upstream_repository = "https://github.com/pypa/setuptools" extra_description = """\ If using `setuptools >= 71.1` *only* for `pkg_resources`, diff --git a/stubs/setuptools/setuptools/command/bdist_egg.pyi b/stubs/setuptools/setuptools/command/bdist_egg.pyi index 7f2eb55c3..762976ad5 100644 --- a/stubs/setuptools/setuptools/command/bdist_egg.pyi +++ b/stubs/setuptools/setuptools/command/bdist_egg.pyi @@ -1,7 +1,7 @@ from _typeshed import GenericPath, Incomplete, StrPath from collections.abc import Iterator from types import CodeType -from typing import AnyStr, ClassVar, Final, TypeVar +from typing import AnyStr, ClassVar, Final, Literal, TypeVar from zipfile import _ZipFileMode from .. import Command @@ -33,7 +33,7 @@ class bdist_egg(Command): def run(self) -> None: ... def zap_pyfiles(self) -> None: ... def zip_safe(self): ... - def gen_header(self): ... + def gen_header(self) -> Literal["w"]: ... def copy_metadata_to(self, target_dir) -> None: ... def get_ext_outputs(self): ... diff --git a/stubs/setuptools/setuptools/command/bdist_wheel.pyi b/stubs/setuptools/setuptools/command/bdist_wheel.pyi index 15c21ccb0..08a298dfb 100644 --- a/stubs/setuptools/setuptools/command/bdist_wheel.pyi +++ b/stubs/setuptools/setuptools/command/bdist_wheel.pyi @@ -25,7 +25,7 @@ class bdist_wheel(Command): boolean_options: ClassVar[list[str]] bdist_dir: str | None - data_dir: str | None + data_dir: str plat_name: str | None plat_tag: str | None format: str diff --git a/stubs/setuptools/setuptools/command/build_py.pyi b/stubs/setuptools/setuptools/command/build_py.pyi index a1bf6b40f..7a2435bed 100644 --- a/stubs/setuptools/setuptools/command/build_py.pyi +++ b/stubs/setuptools/setuptools/command/build_py.pyi @@ -26,12 +26,11 @@ class build_py(orig.build_py): def run(self) -> None: ... data_files: list[tuple[str, str, str, list[str]]] def __getattr__(self, attr: str): ... - def build_module(self, module, module_file, package): ... def get_data_files_without_manifest(self) -> list[tuple[str, str, str, list[str]]]: ... def find_data_files(self, package, src_dir) -> list[str]: ... def get_outputs(self, include_bytecode: bool = True) -> list[str]: ... # type: ignore[override] # Using a real boolean instead of 0|1 def build_package_data(self) -> None: ... - manifest_files: dict[Incomplete, Incomplete] + manifest_files: dict[str, list[str]] def get_output_mapping(self) -> dict[str, str]: ... def analyze_manifest(self) -> None: ... def get_data_files(self) -> None: ... diff --git a/stubs/setuptools/setuptools/command/easy_install.pyi b/stubs/setuptools/setuptools/command/easy_install.pyi index 36b1ebf42..0255102d8 100644 --- a/stubs/setuptools/setuptools/command/easy_install.pyi +++ b/stubs/setuptools/setuptools/command/easy_install.pyi @@ -8,7 +8,7 @@ from setuptools.package_index import PackageIndex from .. import Command, SetuptoolsDeprecationWarning -__all__ = ["easy_install", "PthDistributions", "extract_wininst_cfg", "get_exe_prefixes"] +__all__ = ["PthDistributions", "easy_install", "extract_wininst_cfg", "get_exe_prefixes"] class easy_install(Command): description: str @@ -52,7 +52,7 @@ class easy_install(Command): all_site_dirs: list[str] shadow_path: list[str] local_index: Environment - outputs: list[Incomplete] + outputs: list[str] def finalize_options(self) -> None: ... def expand_basedirs(self) -> None: ... def expand_dirs(self) -> None: ... diff --git a/stubs/setuptools/setuptools/command/editable_wheel.pyi b/stubs/setuptools/setuptools/command/editable_wheel.pyi index bcbec3e17..3080f4d69 100644 --- a/stubs/setuptools/setuptools/command/editable_wheel.pyi +++ b/stubs/setuptools/setuptools/command/editable_wheel.pyi @@ -71,7 +71,7 @@ class _NamespaceInstaller(namespaces.Installer): src_root: Incomplete installation_dir: Incomplete editable_name: Incomplete - outputs: list[Incomplete] + outputs: list[str] dry_run: bool def __init__(self, distribution, installation_dir, editable_name, src_root) -> None: ... diff --git a/stubs/setuptools/setuptools/command/install_egg_info.pyi b/stubs/setuptools/setuptools/command/install_egg_info.pyi index d1a8dd4fe..2c32f1a6b 100644 --- a/stubs/setuptools/setuptools/command/install_egg_info.pyi +++ b/stubs/setuptools/setuptools/command/install_egg_info.pyi @@ -10,7 +10,7 @@ class install_egg_info(namespaces.Installer, Command): def initialize_options(self) -> None: ... source: Incomplete target: str - outputs: list[Incomplete] + outputs: list[str] def finalize_options(self) -> None: ... def run(self) -> None: ... def get_outputs(self): ... diff --git a/stubs/setuptools/setuptools/msvc.pyi b/stubs/setuptools/setuptools/msvc.pyi index 3c1812281..af55d1c21 100644 --- a/stubs/setuptools/setuptools/msvc.pyi +++ b/stubs/setuptools/setuptools/msvc.pyi @@ -80,11 +80,11 @@ class SystemInfo: @property def VCInstallDir(self) -> str: ... @property - def WindowsSdkVersion(self) -> tuple[LiteralString, ...] | None: ... + def WindowsSdkVersion(self) -> tuple[LiteralString, ...]: ... @property def WindowsSdkLastVersion(self) -> str: ... @property - def WindowsSdkDir(self) -> str: ... + def WindowsSdkDir(self) -> str | None: ... @property def WindowsSDKExecutablePath(self) -> str | None: ... @property @@ -102,9 +102,9 @@ class SystemInfo: @property def FrameworkDir64(self) -> str: ... @property - def FrameworkVersion32(self) -> tuple[str, ...] | None: ... + def FrameworkVersion32(self) -> tuple[str, ...]: ... @property - def FrameworkVersion64(self) -> tuple[str, ...] | None: ... + def FrameworkVersion64(self) -> tuple[str, ...]: ... class _EnvironmentDict(TypedDict): include: str