Skip to content

Commit f6a09f7

Browse files
committed
Revert "setuptools: add various missing objects and annotations (python#10639)"
This reverts commit a4f08bd.
1 parent d4f70be commit f6a09f7

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

stubs/setuptools/setuptools/_distutils/ccompiler.pyi

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections.abc import Callable
2-
from typing import Any, ClassVar
2+
from typing import Any
33
from typing_extensions import TypeAlias
44

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

1717
class CCompiler:
18-
src_extensions: ClassVar[list[str] | None]
19-
obj_extensions: ClassVar[str | None]
20-
static_lib_extension: ClassVar[str | None]
21-
shared_lib_extension: ClassVar[str | None]
22-
static_lib_format: ClassVar[str | None]
23-
shared_lib_format: ClassVar[str | None]
24-
exe_extension: ClassVar[str | None]
25-
language_map: ClassVar[dict[str, str]]
26-
language_order: ClassVar[list[str]]
2718
dry_run: bool
2819
force: bool
2920
verbose: bool

stubs/setuptools/setuptools/_distutils/cmd.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Command:
1010
distribution: Distribution
1111
sub_commands: ClassVar[list[tuple[str, Callable[[Self], bool] | None]]]
1212
def __init__(self, dist: Distribution) -> None: ...
13-
def ensure_finalized(self) -> None: ...
1413
@abstractmethod
1514
def initialize_options(self) -> None: ...
1615
@abstractmethod

stubs/setuptools/setuptools/_distutils/command/build_ext.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from _typeshed import Incomplete
22

33
from ..cmd import Command
4-
from ..extension import Extension
54

65
class build_ext(Command):
76
description: str
@@ -43,5 +42,5 @@ class build_ext(Command):
4342
def get_ext_fullpath(self, ext_name: str) -> str: ...
4443
def get_ext_fullname(self, ext_name: str) -> str: ...
4544
def get_ext_filename(self, ext_name: str) -> str: ...
46-
def get_export_symbols(self, ext: Extension) -> list[str]: ...
47-
def get_libraries(self, ext: Extension) -> list[str]: ...
45+
def get_export_symbols(self, ext): ...
46+
def get_libraries(self, ext): ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def configure() -> None: ...
2-
def set_threshold(level: int) -> int: ...
2+
def set_threshold(level): ...

0 commit comments

Comments
 (0)