File tree 4 files changed +15
-4
lines changed
stubs/setuptools/setuptools
4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
from collections .abc import Callable
2
- from typing import Any
2
+ from typing import Any , ClassVar
3
3
from typing_extensions import TypeAlias
4
4
5
5
_Macro : TypeAlias = tuple [str ] | tuple [str , str | None ]
@@ -15,6 +15,15 @@ def new_compiler(
15
15
def show_compilers () -> None : ...
16
16
17
17
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 ]]
18
27
dry_run : bool
19
28
force : bool
20
29
verbose : bool
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class Command:
10
10
distribution : Distribution
11
11
sub_commands : ClassVar [list [tuple [str , Callable [[Self ], bool ] | None ]]]
12
12
def __init__ (self , dist : Distribution ) -> None : ...
13
+ def ensure_finalized (self ) -> None : ...
13
14
@abstractmethod
14
15
def initialize_options (self ) -> None : ...
15
16
@abstractmethod
Original file line number Diff line number Diff line change 1
1
from _typeshed import Incomplete
2
2
3
3
from ..cmd import Command
4
+ from ..extension import Extension
4
5
5
6
class build_ext (Command ):
6
7
description : str
@@ -42,5 +43,5 @@ class build_ext(Command):
42
43
def get_ext_fullpath (self , ext_name : str ) -> str : ...
43
44
def get_ext_fullname (self , ext_name : str ) -> str : ...
44
45
def get_ext_filename (self , ext_name : str ) -> str : ...
45
- def get_export_symbols (self , ext ) : ...
46
- def get_libraries (self , ext ) : ...
46
+ def get_export_symbols (self , ext : Extension ) -> list [ str ] : ...
47
+ def get_libraries (self , ext : Extension ) -> list [ str ] : ...
Original file line number Diff line number Diff line change 1
1
def configure () -> None : ...
2
- def set_threshold (level ) : ...
2
+ def set_threshold (level : int ) -> int : ...
You can’t perform that action at this time.
0 commit comments