Skip to content

Commit b414e63

Browse files
committed
👽️ numpy 2.3 changes in testing._private
1 parent 306d927 commit b414e63

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pathlib
22
import types
3-
from collections.abc import Sequence
3+
from collections.abc import Iterable, Sequence
44

55
__all__ = ["build_and_import_extension", "compile_extension_module"]
66

@@ -10,16 +10,24 @@ def build_and_import_extension(
1010
*,
1111
prologue: str = "",
1212
build_dir: pathlib.Path | None = None,
13-
include_dirs: Sequence[str] = [],
13+
include_dirs: Sequence[str] | None = None,
1414
more_init: str = "",
1515
) -> types.ModuleType: ...
16-
17-
#
1816
def compile_extension_module(
1917
name: str,
2018
builddir: pathlib.Path,
2119
include_dirs: Sequence[str],
2220
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,
2523
) -> 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

0 commit comments

Comments
 (0)