File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
src/numpy-stubs/testing/_private Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
import pathlib
2
2
import types
3
- from collections .abc import Sequence
3
+ from collections .abc import Iterable , Sequence
4
4
5
5
__all__ = ["build_and_import_extension" , "compile_extension_module" ]
6
6
@@ -10,16 +10,24 @@ def build_and_import_extension(
10
10
* ,
11
11
prologue : str = "" ,
12
12
build_dir : pathlib .Path | None = None ,
13
- include_dirs : Sequence [str ] = [] ,
13
+ include_dirs : Sequence [str ] | None = None ,
14
14
more_init : str = "" ,
15
15
) -> types .ModuleType : ...
16
-
17
- #
18
16
def compile_extension_module (
19
17
name : str ,
20
18
builddir : pathlib .Path ,
21
19
include_dirs : Sequence [str ],
22
20
source_string : str ,
23
- libraries : Sequence [str ] = [] ,
24
- library_dirs : Sequence [str ] = [] ,
21
+ libraries : Sequence [str ] | None = None ,
22
+ library_dirs : Sequence [str ] | None = None ,
25
23
) -> pathlib .Path : ...
24
+ def build (
25
+ cfile : pathlib .Path ,
26
+ outputfilename : pathlib .Path ,
27
+ compile_extra : str ,
28
+ link_extra : str ,
29
+ include_dirs : str ,
30
+ libraries : object , # unused
31
+ library_dirs : Iterable [str ],
32
+ ) -> pathlib .Path : ... # undocumented
33
+ def get_so_suffix () -> str : ... # undocumented
You can’t perform that action at this time.
0 commit comments