diff --git a/stdlib/distutils/command/bdist.pyi b/stdlib/distutils/command/bdist.pyi index e1f141d3a40f..43d77087f7d8 100644 --- a/stdlib/distutils/command/bdist.pyi +++ b/stdlib/distutils/command/bdist.pyi @@ -1,4 +1,6 @@ -from typing import Any +from _typeshed import Unused +from collections.abc import Callable +from typing import Any, ClassVar from ..cmd import Command @@ -6,13 +8,13 @@ def show_formats() -> None: ... class bdist(Command): description: str - user_options: Any - boolean_options: Any - help_options: Any - no_format_option: Any - default_format: Any - format_commands: Any - format_command: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] + no_format_option: ClassVar[tuple[str, ...]] + default_format: ClassVar[dict[str, str]] + format_commands: ClassVar[list[str]] + format_command: ClassVar[dict[str, tuple[str, str]]] bdist_base: Any plat_name: Any formats: Any diff --git a/stdlib/distutils/command/bdist_dumb.pyi b/stdlib/distutils/command/bdist_dumb.pyi index 74cca4d13cd0..19997882dd53 100644 --- a/stdlib/distutils/command/bdist_dumb.pyi +++ b/stdlib/distutils/command/bdist_dumb.pyi @@ -1,12 +1,12 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command class bdist_dumb(Command): description: str - user_options: Any - boolean_options: Any - default_format: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + default_format: ClassVar[dict[str, str]] bdist_dir: Any plat_name: Any format: Any diff --git a/stdlib/distutils/command/bdist_msi.pyi b/stdlib/distutils/command/bdist_msi.pyi index d1eb374ff52b..d0eac1a3be5b 100644 --- a/stdlib/distutils/command/bdist_msi.pyi +++ b/stdlib/distutils/command/bdist_msi.pyi @@ -1,5 +1,5 @@ import sys -from typing import Any, Literal +from typing import Any, ClassVar, Literal from ..cmd import Command @@ -16,8 +16,8 @@ if sys.platform == "win32": class bdist_msi(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] all_versions: Any other_version: str if sys.version_info >= (3, 9): diff --git a/stdlib/distutils/command/bdist_rpm.pyi b/stdlib/distutils/command/bdist_rpm.pyi index 76691310b599..89c43e1b974c 100644 --- a/stdlib/distutils/command/bdist_rpm.pyi +++ b/stdlib/distutils/command/bdist_rpm.pyi @@ -1,12 +1,12 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command class bdist_rpm(Command): description: str - user_options: Any - boolean_options: Any - negative_opt: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] bdist_base: Any rpm_base: Any dist_dir: Any diff --git a/stdlib/distutils/command/bdist_wininst.pyi b/stdlib/distutils/command/bdist_wininst.pyi index 8491d3126200..cf333bc5400d 100644 --- a/stdlib/distutils/command/bdist_wininst.pyi +++ b/stdlib/distutils/command/bdist_wininst.pyi @@ -1,10 +1,10 @@ from _typeshed import StrOrBytesPath from distutils.cmd import Command -from typing import Any, ClassVar +from typing import ClassVar class bdist_wininst(Command): description: ClassVar[str] - user_options: ClassVar[list[tuple[Any, ...]]] + user_options: ClassVar[list[tuple[str, str | None, str]]] boolean_options: ClassVar[list[str]] def initialize_options(self) -> None: ... diff --git a/stdlib/distutils/command/build.pyi b/stdlib/distutils/command/build.pyi index 31fc036d4f97..78ba6b7042dc 100644 --- a/stdlib/distutils/command/build.pyi +++ b/stdlib/distutils/command/build.pyi @@ -1,3 +1,4 @@ +from _typeshed import Unused from collections.abc import Callable from typing import Any, ClassVar @@ -7,9 +8,9 @@ def show_compilers() -> None: ... class build(Command): description: str - user_options: Any - boolean_options: Any - help_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] build_base: str build_purelib: Any build_platlib: Any diff --git a/stdlib/distutils/command/build_clib.pyi b/stdlib/distutils/command/build_clib.pyi index 32ab182b30d0..1f66e2efc20c 100644 --- a/stdlib/distutils/command/build_clib.pyi +++ b/stdlib/distutils/command/build_clib.pyi @@ -1,4 +1,6 @@ -from typing import Any +from _typeshed import Unused +from collections.abc import Callable +from typing import Any, ClassVar from ..cmd import Command @@ -6,9 +8,9 @@ def show_compilers() -> None: ... class build_clib(Command): description: str - user_options: Any - boolean_options: Any - help_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] build_clib: Any build_temp: Any libraries: Any diff --git a/stdlib/distutils/command/build_ext.pyi b/stdlib/distutils/command/build_ext.pyi index 5eb541fb9101..a0813c314021 100644 --- a/stdlib/distutils/command/build_ext.pyi +++ b/stdlib/distutils/command/build_ext.pyi @@ -1,4 +1,6 @@ -from typing import Any +from _typeshed import Unused +from collections.abc import Callable +from typing import Any, ClassVar from ..cmd import Command @@ -9,9 +11,9 @@ def show_compilers() -> None: ... class build_ext(Command): description: str sep_by: Any - user_options: Any - boolean_options: Any - help_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] extensions: Any build_lib: Any plat_name: Any diff --git a/stdlib/distutils/command/build_py.pyi b/stdlib/distutils/command/build_py.pyi index 4c607c6dabe9..90f06751416a 100644 --- a/stdlib/distutils/command/build_py.pyi +++ b/stdlib/distutils/command/build_py.pyi @@ -1,13 +1,13 @@ -from typing import Any, Literal +from typing import Any, ClassVar, Literal from ..cmd import Command from ..util import Mixin2to3 as Mixin2to3 class build_py(Command): description: str - user_options: Any - boolean_options: Any - negative_opt: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] build_lib: Any py_modules: Any package: Any diff --git a/stdlib/distutils/command/build_scripts.pyi b/stdlib/distutils/command/build_scripts.pyi index 42135eceafef..7871bb8a5719 100644 --- a/stdlib/distutils/command/build_scripts.pyi +++ b/stdlib/distutils/command/build_scripts.pyi @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command from ..util import Mixin2to3 as Mixin2to3 @@ -7,8 +7,8 @@ first_line_re: Any class build_scripts(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] build_dir: Any scripts: Any force: Any diff --git a/stdlib/distutils/command/check.pyi b/stdlib/distutils/command/check.pyi index da041d82587d..c67e4cbfdfe0 100644 --- a/stdlib/distutils/command/check.pyi +++ b/stdlib/distutils/command/check.pyi @@ -1,4 +1,4 @@ -from typing import Any, Literal +from typing import Any, ClassVar, Literal from typing_extensions import TypeAlias from ..cmd import Command @@ -26,8 +26,8 @@ HAS_DOCUTILS: bool class check(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] restructuredtext: int metadata: int strict: int diff --git a/stdlib/distutils/command/clean.pyi b/stdlib/distutils/command/clean.pyi index 99560aa8a716..55f0a0eeaf10 100644 --- a/stdlib/distutils/command/clean.pyi +++ b/stdlib/distutils/command/clean.pyi @@ -1,11 +1,11 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command class clean(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] build_base: Any build_lib: Any build_temp: Any diff --git a/stdlib/distutils/command/config.pyi b/stdlib/distutils/command/config.pyi index 391f5a862038..2f528c2c290b 100644 --- a/stdlib/distutils/command/config.pyi +++ b/stdlib/distutils/command/config.pyi @@ -1,7 +1,7 @@ from _typeshed import StrOrBytesPath from collections.abc import Sequence from re import Pattern -from typing import Any, Literal +from typing import Any, ClassVar, Literal from ..ccompiler import CCompiler from ..cmd import Command @@ -11,7 +11,7 @@ LANG_EXT: dict[str, str] class config(Command): description: str # Tuple is full name, short name, description - user_options: Sequence[tuple[str, str | None, str]] + user_options: ClassVar[list[tuple[str, str | None, str]]] compiler: str | CCompiler cc: str | None include_dirs: Sequence[str] | None diff --git a/stdlib/distutils/command/install.pyi b/stdlib/distutils/command/install.pyi index 8b2295d7a3c7..b0a5a82fc3f6 100644 --- a/stdlib/distutils/command/install.pyi +++ b/stdlib/distutils/command/install.pyi @@ -9,9 +9,9 @@ INSTALL_SCHEMES: dict[str, dict[Any, Any]] class install(Command): description: str - user_options: Any - boolean_options: Any - negative_opt: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] prefix: str | None exec_prefix: Any home: str | None diff --git a/stdlib/distutils/command/install_data.pyi b/stdlib/distutils/command/install_data.pyi index 6cc9b528ac9d..342c7a7ccca4 100644 --- a/stdlib/distutils/command/install_data.pyi +++ b/stdlib/distutils/command/install_data.pyi @@ -1,11 +1,11 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command class install_data(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] install_dir: Any outfiles: Any root: Any diff --git a/stdlib/distutils/command/install_egg_info.pyi b/stdlib/distutils/command/install_egg_info.pyi index 776eafc1de09..3fd54989d14f 100644 --- a/stdlib/distutils/command/install_egg_info.pyi +++ b/stdlib/distutils/command/install_egg_info.pyi @@ -4,7 +4,7 @@ from ..cmd import Command class install_egg_info(Command): description: ClassVar[str] - user_options: ClassVar[list[tuple[str, str | None, str]]] + user_options: ClassVar[list[tuple[str, str, str]]] install_dir: Any def initialize_options(self) -> None: ... target: Any diff --git a/stdlib/distutils/command/install_headers.pyi b/stdlib/distutils/command/install_headers.pyi index 795bd1cf8356..7854d2393a98 100644 --- a/stdlib/distutils/command/install_headers.pyi +++ b/stdlib/distutils/command/install_headers.pyi @@ -1,11 +1,11 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command class install_headers(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] install_dir: Any force: int outfiles: Any diff --git a/stdlib/distutils/command/install_lib.pyi b/stdlib/distutils/command/install_lib.pyi index a6a5e4e73f4c..718d082b7b07 100644 --- a/stdlib/distutils/command/install_lib.pyi +++ b/stdlib/distutils/command/install_lib.pyi @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command @@ -6,9 +6,9 @@ PYTHON_SOURCE_EXTENSION: str class install_lib(Command): description: str - user_options: Any - boolean_options: Any - negative_opt: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] install_dir: Any build_dir: Any force: int diff --git a/stdlib/distutils/command/install_scripts.pyi b/stdlib/distutils/command/install_scripts.pyi index 92728a16a747..5ee5589ad33d 100644 --- a/stdlib/distutils/command/install_scripts.pyi +++ b/stdlib/distutils/command/install_scripts.pyi @@ -1,11 +1,11 @@ -from typing import Any +from typing import Any, ClassVar from ..cmd import Command class install_scripts(Command): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] install_dir: Any force: int build_dir: Any diff --git a/stdlib/distutils/command/sdist.pyi b/stdlib/distutils/command/sdist.pyi index db303f77a463..5b7fe2419551 100644 --- a/stdlib/distutils/command/sdist.pyi +++ b/stdlib/distutils/command/sdist.pyi @@ -1,3 +1,4 @@ +from _typeshed import Unused from collections.abc import Callable from typing import Any, ClassVar @@ -8,13 +9,13 @@ def show_formats() -> None: ... class sdist(Command): description: str def checking_metadata(self): ... - user_options: Any - boolean_options: Any - help_options: Any - negative_opt: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] + negative_opt: ClassVar[dict[str, str]] # Any to work around variance issues sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]] - READMES: Any + READMES: ClassVar[tuple[str, ...]] template: Any manifest: Any use_defaults: int diff --git a/stubs/libsass/sassutils/distutils.pyi b/stubs/libsass/sassutils/distutils.pyi index 30948834652d..a4a74cb25e0e 100644 --- a/stubs/libsass/sassutils/distutils.pyi +++ b/stubs/libsass/sassutils/distutils.pyi @@ -1,3 +1,5 @@ +from typing import ClassVar + from sassutils.builder import Manifest as Manifest from setuptools import Command, Distribution @@ -5,7 +7,7 @@ def validate_manifests(dist: Distribution, attr: str, value: object) -> None: .. class build_sass(Command): description: str - user_options: list[tuple[str, str, str]] + user_options: ClassVar[list[tuple[str, str, str]]] package_dir: dict[str, str] | None output_style: str def initialize_options(self) -> None: ... diff --git a/stubs/setuptools/setuptools/_distutils/command/bdist.pyi b/stubs/setuptools/setuptools/_distutils/command/bdist.pyi index d12773033c5d..edeb0e6a5284 100644 --- a/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/bdist.pyi @@ -1,4 +1,5 @@ from _typeshed import Unused +from collections.abc import Callable from typing import ClassVar from typing_extensions import deprecated @@ -14,7 +15,7 @@ class bdist(Command): description: ClassVar[str] user_options: ClassVar[list[tuple[str | None, str | None, str | None]]] boolean_options: ClassVar[list[str]] - help_options: ClassVar[list[tuple[str | None, ...]]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] no_format_option: ClassVar[tuple[str, ...]] default_format: ClassVar[dict[str, str]] format_commands: ClassVar[ListCompat] diff --git a/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi b/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi index 929b1b4a97a7..83b4161094c5 100644 --- a/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi @@ -1,12 +1,13 @@ from _typeshed import Incomplete +from typing import ClassVar from ..cmd import Command class bdist_rpm(Command): description: str - user_options: Incomplete - boolean_options: Incomplete - negative_opt: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] bdist_base: Incomplete rpm_base: Incomplete dist_dir: Incomplete diff --git a/stubs/setuptools/setuptools/_distutils/command/build.pyi b/stubs/setuptools/setuptools/_distutils/command/build.pyi index 02f82169ae2c..a1c00b5c8162 100644 --- a/stubs/setuptools/setuptools/_distutils/command/build.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/build.pyi @@ -1,4 +1,6 @@ -from _typeshed import Incomplete +from _typeshed import Incomplete, Unused +from collections.abc import Callable +from typing import ClassVar from ..cmd import Command @@ -6,9 +8,9 @@ def show_compilers() -> None: ... class build(Command): description: str - user_options: Incomplete - boolean_options: Incomplete - help_options: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] build_base: str build_purelib: Incomplete build_platlib: Incomplete diff --git a/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi b/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi index 5a9b049ad429..687cb534501b 100644 --- a/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi @@ -1,12 +1,14 @@ -from _typeshed import Incomplete +from _typeshed import Incomplete, Unused +from collections.abc import Callable +from typing import ClassVar from ..cmd import Command class build_clib(Command): description: str - user_options: Incomplete - boolean_options: Incomplete - help_options: Incomplete + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] build_clib: Incomplete build_temp: Incomplete libraries: Incomplete diff --git a/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi b/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi index 67b31e7bb28f..49c7f194852e 100644 --- a/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi @@ -1,4 +1,6 @@ -from _typeshed import Incomplete +from _typeshed import Incomplete, Unused +from collections.abc import Callable +from typing import ClassVar from ..cmd import Command from ..extension import Extension @@ -6,9 +8,9 @@ from ..extension import Extension class build_ext(Command): description: str sep_by: Incomplete - user_options: Incomplete - boolean_options: Incomplete - help_options: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] extensions: Incomplete build_lib: Incomplete plat_name: Incomplete diff --git a/stubs/setuptools/setuptools/_distutils/command/build_py.pyi b/stubs/setuptools/setuptools/_distutils/command/build_py.pyi index 314d97ff3625..67515b9bf052 100644 --- a/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/build_py.pyi @@ -1,12 +1,13 @@ from _typeshed import Incomplete +from typing import ClassVar from ..cmd import Command class build_py(Command): description: str - user_options: Incomplete - boolean_options: Incomplete - negative_opt: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] build_lib: Incomplete py_modules: Incomplete package: Incomplete diff --git a/stubs/setuptools/setuptools/_distutils/command/install.pyi b/stubs/setuptools/setuptools/_distutils/command/install.pyi index 44f557e58314..8e092f7d6c08 100644 --- a/stubs/setuptools/setuptools/_distutils/command/install.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/install.pyi @@ -1,12 +1,13 @@ from _typeshed import Incomplete +from typing import ClassVar from ..cmd import Command class install(Command): description: str - user_options: Incomplete - boolean_options: Incomplete - negative_opt: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] prefix: str | None exec_prefix: Incomplete home: str | None diff --git a/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi b/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi index 694a23ba82f4..7edc148be97a 100644 --- a/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi @@ -1,12 +1,13 @@ from _typeshed import Incomplete +from typing import ClassVar from ..cmd import Command class install_lib(Command): description: str - user_options: Incomplete - boolean_options: Incomplete - negative_opt: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] install_dir: Incomplete build_dir: Incomplete force: int diff --git a/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi b/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi index fb20bf062aa3..b9eab32f9dd3 100644 --- a/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi @@ -1,11 +1,12 @@ from _typeshed import Incomplete +from typing import ClassVar from ..cmd import Command class install_scripts(Command): description: str - user_options: Incomplete - boolean_options: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] install_dir: Incomplete force: int build_dir: Incomplete diff --git a/stubs/setuptools/setuptools/_distutils/command/sdist.pyi b/stubs/setuptools/setuptools/_distutils/command/sdist.pyi index bb30ab1415af..98663449f06f 100644 --- a/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/sdist.pyi @@ -1,4 +1,5 @@ -from _typeshed import Incomplete +from _typeshed import Incomplete, Unused +from collections.abc import Callable from typing import ClassVar from typing_extensions import deprecated @@ -11,11 +12,11 @@ class sdist(Command): def checking_metadata(self): ... - user_options: Incomplete - boolean_options: Incomplete - help_options: Incomplete - negative_opt: Incomplete - READMES: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]] + negative_opt: ClassVar[dict[str, str]] + READMES: ClassVar[tuple[str, ...]] template: Incomplete manifest: Incomplete use_defaults: int diff --git a/stubs/setuptools/setuptools/command/alias.pyi b/stubs/setuptools/setuptools/command/alias.pyi index 6486ffaa845a..a3cf5e8df29c 100644 --- a/stubs/setuptools/setuptools/command/alias.pyi +++ b/stubs/setuptools/setuptools/command/alias.pyi @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, ClassVar from .setopt import option_base @@ -7,8 +7,8 @@ def shquote(arg): ... class alias(option_base): description: str command_consumes_arguments: bool - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] args: Any remove: Any def initialize_options(self) -> None: ... diff --git a/stubs/setuptools/setuptools/command/bdist_egg.pyi b/stubs/setuptools/setuptools/command/bdist_egg.pyi index 356df96c7bee..6120d3b6c2ff 100644 --- a/stubs/setuptools/setuptools/command/bdist_egg.pyi +++ b/stubs/setuptools/setuptools/command/bdist_egg.pyi @@ -1,5 +1,6 @@ from _typeshed import Incomplete from collections.abc import Generator +from typing import ClassVar, Final from .. import Command @@ -9,8 +10,8 @@ def write_stub(resource, pyfile) -> None: ... class bdist_egg(Command): description: str - user_options: Incomplete - boolean_options: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] bdist_dir: Incomplete plat_name: Incomplete keep_temp: bool @@ -32,7 +33,7 @@ class bdist_egg(Command): def copy_metadata_to(self, target_dir) -> None: ... def get_ext_outputs(self): ... -NATIVE_EXTENSIONS: Incomplete +NATIVE_EXTENSIONS: Final[dict[str, None]] def walk_egg(egg_dir) -> Generator[Incomplete, None, None]: ... def analyze_egg(egg_dir, stubs): ... @@ -44,7 +45,7 @@ def scan_module(egg_dir, base, name, stubs): ... def iter_symbols(code) -> Generator[Incomplete, None, None]: ... def can_scan(): ... -INSTALL_DIRECTORY_ATTRS: Incomplete +INSTALL_DIRECTORY_ATTRS: Final[list[str]] def make_zipfile( zip_filename, base_dir, verbose: bool = False, dry_run: bool = False, compress: bool = True, mode: str = "w" diff --git a/stubs/setuptools/setuptools/command/bdist_wheel.pyi b/stubs/setuptools/setuptools/command/bdist_wheel.pyi index 9f416a7c4d82..822c8b539a80 100644 --- a/stubs/setuptools/setuptools/command/bdist_wheel.pyi +++ b/stubs/setuptools/setuptools/command/bdist_wheel.pyi @@ -1,7 +1,7 @@ from _typeshed import Incomplete from collections.abc import Callable, Iterable from types import TracebackType -from typing import Any, ClassVar, Final, Literal +from typing import ClassVar, Final, Literal from setuptools import Command @@ -26,7 +26,7 @@ def remove_readonly_exc(func: Callable[..., object], path: str, exc: Exception) class bdist_wheel(Command): description: ClassVar[str] supported_compressions: ClassVar[dict[str, int]] - user_options: ClassVar[list[tuple[Any, ...]]] + user_options: ClassVar[list[tuple[str, str | None, str]]] boolean_options: ClassVar[list[str]] bdist_dir: str | None diff --git a/stubs/setuptools/setuptools/command/develop.pyi b/stubs/setuptools/setuptools/command/develop.pyi index ebefbc2d49b7..2690ff1b43bf 100644 --- a/stubs/setuptools/setuptools/command/develop.pyi +++ b/stubs/setuptools/setuptools/command/develop.pyi @@ -1,12 +1,12 @@ -from typing import Any +from typing import Any, ClassVar from .. import namespaces from .easy_install import easy_install class develop(namespaces.DevelopInstaller, easy_install): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] command_consumes_arguments: bool multi_version: bool def run(self) -> None: ... # type: ignore[override] diff --git a/stubs/setuptools/setuptools/command/dist_info.pyi b/stubs/setuptools/setuptools/command/dist_info.pyi index 723a764d7ba3..ea37b5873ead 100644 --- a/stubs/setuptools/setuptools/command/dist_info.pyi +++ b/stubs/setuptools/setuptools/command/dist_info.pyi @@ -4,7 +4,7 @@ from .._distutils.cmd import Command class dist_info(Command): description: str - user_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] boolean_options: ClassVar[list[str]] negative_opt: ClassVar[dict[str, str]] egg_base: Any diff --git a/stubs/setuptools/setuptools/command/easy_install.pyi b/stubs/setuptools/setuptools/command/easy_install.pyi index 9700eabb193f..73b296a24f4e 100644 --- a/stubs/setuptools/setuptools/command/easy_install.pyi +++ b/stubs/setuptools/setuptools/command/easy_install.pyi @@ -12,9 +12,9 @@ __all__ = ["easy_install", "PthDistributions", "extract_wininst_cfg", "get_exe_p class easy_install(Command): description: str command_consumes_arguments: bool - user_options: Incomplete - boolean_options: Incomplete - negative_opt: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] create_index: Incomplete user: bool zip_ok: Incomplete @@ -89,8 +89,8 @@ class easy_install(Command): def unpack_and_compile(self, egg_path, destination): ... def byte_compile(self, to_compile) -> None: ... def create_home_path(self) -> None: ... - INSTALL_SCHEMES: Incomplete - DEFAULT_SCHEME: Incomplete + INSTALL_SCHEMES: ClassVar[dict[str, dict[str, str]]] + DEFAULT_SCHEME: ClassVar[dict[str, str]] def extract_wininst_cfg(dist_filename): ... def get_exe_prefixes(exe_filename): ... diff --git a/stubs/setuptools/setuptools/command/editable_wheel.pyi b/stubs/setuptools/setuptools/command/editable_wheel.pyi index 18d5bec23827..97a4573a6783 100644 --- a/stubs/setuptools/setuptools/command/editable_wheel.pyi +++ b/stubs/setuptools/setuptools/command/editable_wheel.pyi @@ -3,7 +3,7 @@ from collections.abc import Iterator from enum import Enum from pathlib import Path from types import TracebackType -from typing import Protocol +from typing import ClassVar, Protocol from typing_extensions import Self, TypeAlias from .. import Command, errors, namespaces @@ -22,7 +22,7 @@ class _EditableMode(Enum): class editable_wheel(Command): description: str - user_options: Incomplete + user_options: ClassVar[list[tuple[str, str | None, str]]] dist_dir: Incomplete dist_info_dir: Incomplete project_dir: Incomplete diff --git a/stubs/setuptools/setuptools/command/egg_info.pyi b/stubs/setuptools/setuptools/command/egg_info.pyi index b5fba6b76335..fe931303f734 100644 --- a/stubs/setuptools/setuptools/command/egg_info.pyi +++ b/stubs/setuptools/setuptools/command/egg_info.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete -from typing import Final +from typing import ClassVar, Final from .. import Command, SetuptoolsDeprecationWarning from .._distutils.filelist import FileList as _FileList @@ -21,9 +21,9 @@ class InfoCommon: class egg_info(InfoCommon, Command): description: str - user_options: Incomplete - boolean_options: Incomplete - negative_opt: Incomplete + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] + negative_opt: ClassVar[dict[str, str]] egg_base: Incomplete egg_name: Incomplete egg_info: Incomplete diff --git a/stubs/setuptools/setuptools/command/install.pyi b/stubs/setuptools/setuptools/command/install.pyi index b5fa8d634047..88a5d71e5299 100644 --- a/stubs/setuptools/setuptools/command/install.pyi +++ b/stubs/setuptools/setuptools/command/install.pyi @@ -1,11 +1,11 @@ from collections.abc import Callable -from typing import Any +from typing import Any, ClassVar from .._distutils.command import install as orig class install(orig.install): - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + boolean_options: ClassVar[list[str]] # Any to work around variance issues new_commands: list[tuple[str, Callable[[Any], bool]] | None] old_and_unmanageable: Any diff --git a/stubs/setuptools/setuptools/command/install_egg_info.pyi b/stubs/setuptools/setuptools/command/install_egg_info.pyi index a37c98cca4fd..5b27734e13e7 100644 --- a/stubs/setuptools/setuptools/command/install_egg_info.pyi +++ b/stubs/setuptools/setuptools/command/install_egg_info.pyi @@ -1,10 +1,10 @@ -from typing import Any +from typing import Any, ClassVar from .. import Command, namespaces class install_egg_info(namespaces.Installer, Command): description: str - user_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] install_dir: Any def initialize_options(self) -> None: ... source: Any diff --git a/stubs/setuptools/setuptools/command/rotate.pyi b/stubs/setuptools/setuptools/command/rotate.pyi index 7deb47389fb2..e384da503d32 100644 --- a/stubs/setuptools/setuptools/command/rotate.pyi +++ b/stubs/setuptools/setuptools/command/rotate.pyi @@ -1,11 +1,11 @@ -from typing import Any +from typing import Any, ClassVar from .. import Command class rotate(Command): description: str - user_options: Any - boolean_options: list[str] + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] match: Any dist_dir: Any keep: Any diff --git a/stubs/setuptools/setuptools/command/sdist.pyi b/stubs/setuptools/setuptools/command/sdist.pyi index fe4b59d73dad..aa26d64abf95 100644 --- a/stubs/setuptools/setuptools/command/sdist.pyi +++ b/stubs/setuptools/setuptools/command/sdist.pyi @@ -1,14 +1,14 @@ -from typing import Any +from typing import Any, ClassVar from .._distutils.command import sdist as orig def walk_revctrl(dirname: str = "") -> None: ... class sdist(orig.sdist): - user_options: Any - negative_opt: Any - README_EXTENSIONS: Any - READMES: Any + user_options: ClassVar[list[tuple[str, str | None, str]]] + negative_opt: ClassVar[dict[str, str]] + README_EXTENSIONS: ClassVar[list[str]] + READMES: ClassVar[tuple[str, ...]] filelist: Any def run(self) -> None: ... def initialize_options(self) -> None: ... diff --git a/stubs/setuptools/setuptools/command/setopt.pyi b/stubs/setuptools/setuptools/command/setopt.pyi index c57c3601d5ff..316bad5e4e1c 100644 --- a/stubs/setuptools/setuptools/command/setopt.pyi +++ b/stubs/setuptools/setuptools/command/setopt.pyi @@ -1,5 +1,5 @@ from abc import abstractmethod -from typing import Any +from typing import Any, ClassVar from .. import Command @@ -9,8 +9,8 @@ def config_file(kind: str = "local"): ... def edit_config(filename, settings, dry_run: bool = False) -> None: ... class option_base(Command): - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] global_config: Any user_config: Any filename: Any @@ -21,8 +21,8 @@ class option_base(Command): class setopt(option_base): description: str - user_options: Any - boolean_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] + boolean_options: ClassVar[list[str]] command: Any option: Any set_value: Any diff --git a/stubs/setuptools/setuptools/command/test.pyi b/stubs/setuptools/setuptools/command/test.pyi index c475e1d097bc..d6f3bbe4d3fb 100644 --- a/stubs/setuptools/setuptools/command/test.pyi +++ b/stubs/setuptools/setuptools/command/test.pyi @@ -1,7 +1,7 @@ from _typeshed import Incomplete, Unused from collections.abc import Callable from types import ModuleType -from typing import Any, Generic, TypeVar, overload +from typing import Any, ClassVar, Generic, TypeVar, overload from typing_extensions import Self from unittest import TestLoader, TestSuite @@ -23,7 +23,7 @@ class NonDataProperty(Generic[_T]): class test(Command): description: str - user_options: Any + user_options: ClassVar[list[tuple[str, str, str]]] test_suite: Any test_module: Any test_loader: Any diff --git a/stubs/setuptools/setuptools/config/setupcfg.pyi b/stubs/setuptools/setuptools/config/setupcfg.pyi index c231699aa817..e3b88b4b3386 100644 --- a/stubs/setuptools/setuptools/config/setupcfg.pyi +++ b/stubs/setuptools/setuptools/config/setupcfg.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete, StrPath -from typing import Generic, TypeVar +from typing import ClassVar, Generic, TypeVar from .._distutils.dist import DistributionMetadata from ..dist import Distribution @@ -22,7 +22,7 @@ def parse_configuration( class ConfigHandler(Generic[Target]): section_prefix: str - aliases: dict[str, str] + aliases: ClassVar[dict[str, str]] ignore_option_errors: Incomplete target_obj: Incomplete sections: Incomplete @@ -43,7 +43,7 @@ class ConfigHandler(Generic[Target]): class ConfigMetadataHandler(ConfigHandler[DistributionMetadata]): section_prefix: str - aliases: Incomplete + aliases: ClassVar[dict[str, str]] strict_mode: bool package_dir: Incomplete root_dir: Incomplete diff --git a/stubs/setuptools/setuptools/discovery.pyi b/stubs/setuptools/setuptools/discovery.pyi index 3a7635696675..d6cb61e70fc2 100644 --- a/stubs/setuptools/setuptools/discovery.pyi +++ b/stubs/setuptools/setuptools/discovery.pyi @@ -1,5 +1,6 @@ from _typeshed import Incomplete, StrPath from collections.abc import Iterable, Iterator, Mapping +from typing import ClassVar from typing_extensions import TypeAlias from . import Distribution @@ -13,22 +14,22 @@ class _Filter: def __contains__(self, item: str) -> bool: ... class _Finder: - ALWAYS_EXCLUDE: tuple[str, ...] - DEFAULT_EXCLUDE: tuple[str, ...] + ALWAYS_EXCLUDE: ClassVar[tuple[str, ...]] + DEFAULT_EXCLUDE: ClassVar[tuple[str, ...]] @classmethod def find(cls, where: StrPath = ".", exclude: Iterable[str] = (), include: Iterable[str] = ("*",)) -> list[str]: ... class PackageFinder(_Finder): - ALWAYS_EXCLUDE: Incomplete + ALWAYS_EXCLUDE: ClassVar[tuple[str, ...]] class PEP420PackageFinder(PackageFinder): ... class ModuleFinder(_Finder): ... class FlatLayoutPackageFinder(PEP420PackageFinder): - DEFAULT_EXCLUDE: Incomplete + DEFAULT_EXCLUDE: ClassVar[tuple[str, ...]] class FlatLayoutModuleFinder(ModuleFinder): - DEFAULT_EXCLUDE: Incomplete + DEFAULT_EXCLUDE: ClassVar[tuple[str, ...]] class ConfigDiscovery: dist: Incomplete diff --git a/stubs/setuptools/setuptools/msvc.pyi b/stubs/setuptools/setuptools/msvc.pyi index 6ad7b176a91b..daac625fab3b 100644 --- a/stubs/setuptools/setuptools/msvc.pyi +++ b/stubs/setuptools/setuptools/msvc.pyi @@ -1,6 +1,8 @@ +import sys from _typeshed import Incomplete +from typing import Final -PLAT_SPEC_TO_RUNTIME: dict[str, str] +PLAT_SPEC_TO_RUNTIME: Final[dict[str, str]] def msvc14_get_vc_env(plat_spec: str) -> dict[str, Incomplete]: ... @@ -17,7 +19,11 @@ class PlatformInfo: def cross_dir(self, forcex86: bool = False): ... class RegistryInfo: - HKEYS: Incomplete + if sys.platform == "win32": + HKEYS: Final[tuple[int, int, int, int]] + else: + HKEYS: Final[tuple[None, None, None, None]] + pi: Incomplete def __init__(self, platform_info) -> None: ... @property diff --git a/stubs/setuptools/setuptools/sandbox.pyi b/stubs/setuptools/setuptools/sandbox.pyi index 32328ac7cac5..f1aa00c3c71b 100644 --- a/stubs/setuptools/setuptools/sandbox.pyi +++ b/stubs/setuptools/setuptools/sandbox.pyi @@ -1,6 +1,6 @@ import sys from types import TracebackType -from typing import Any, Literal +from typing import Any, ClassVar, Literal from typing_extensions import Self from ._distutils.errors import DistutilsError @@ -56,7 +56,7 @@ class AbstractSandbox: def utime(self, path, *args, **kw): ... class DirectorySandbox(AbstractSandbox): - write_ops: Any + write_ops: ClassVar[dict[str, None]] def __init__(self, sandbox, exceptions=...) -> None: ... def tmpnam(self) -> None: ... def open(self, file, flags, mode: int = 511, *args, **kw): ... # type: ignore[override]