Skip to content

setuptools: add various missing objects and annotations #10639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion stubs/setuptools/setuptools/_distutils/ccompiler.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections.abc import Callable
from typing import Any
from typing import Any, ClassVar
from typing_extensions import TypeAlias

_Macro: TypeAlias = tuple[str] | tuple[str, str | None]
Expand All @@ -15,6 +15,15 @@ def new_compiler(
def show_compilers() -> None: ...

class CCompiler:
src_extensions: ClassVar[list[str] | None]
obj_extensions: ClassVar[str | None]
static_lib_extension: ClassVar[str | None]
shared_lib_extension: ClassVar[str | None]
static_lib_format: ClassVar[str | None]
shared_lib_format: ClassVar[str | None]
exe_extension: ClassVar[str | None]
language_map: ClassVar[dict[str, str]]
language_order: ClassVar[list[str]]
dry_run: bool
force: bool
verbose: bool
Expand Down
1 change: 1 addition & 0 deletions stubs/setuptools/setuptools/_distutils/cmd.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Command:
distribution: Distribution
sub_commands: ClassVar[list[tuple[str, Callable[[Self], bool] | None]]]
def __init__(self, dist: Distribution) -> None: ...
def ensure_finalized(self) -> None: ...
@abstractmethod
def initialize_options(self) -> None: ...
@abstractmethod
Expand Down
5 changes: 3 additions & 2 deletions stubs/setuptools/setuptools/_distutils/command/build_ext.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from _typeshed import Incomplete

from ..cmd import Command
from ..extension import Extension

class build_ext(Command):
description: str
Expand Down Expand Up @@ -42,5 +43,5 @@ class build_ext(Command):
def get_ext_fullpath(self, ext_name: str) -> str: ...
def get_ext_fullname(self, ext_name: str) -> str: ...
def get_ext_filename(self, ext_name: str) -> str: ...
def get_export_symbols(self, ext): ...
def get_libraries(self, ext): ...
def get_export_symbols(self, ext: Extension) -> list[str]: ...
def get_libraries(self, ext: Extension) -> list[str]: ...
2 changes: 1 addition & 1 deletion stubs/setuptools/setuptools/logging.pyi
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def configure() -> None: ...
def set_threshold(level): ...
def set_threshold(level: int) -> int: ...