🌐 AI搜索 & 代理 主页
Skip to content

Commit 28718a4

Browse files
committed
TYP: fix incorrect function arg defaults in testing._private.extbuild
1 parent 6fac08d commit 28718a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/testing/_private/extbuild.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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: ...
1616

@@ -20,6 +20,6 @@ def compile_extension_module(
2020
builddir: pathlib.Path,
2121
include_dirs: Sequence[str],
2222
source_string: str,
23-
libraries: Sequence[str] = [],
24-
library_dirs: Sequence[str] = [],
23+
libraries: Sequence[str] | None = None,
24+
library_dirs: Sequence[str] | None = None,
2525
) -> pathlib.Path: ...

0 commit comments

Comments
 (0)