mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
setuptools & distutils: ClassVar mutables (and tuples) (#12403)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user