Skip to content

Commit f8908c1

Browse files
authored
Merge pull request #29913 from charris/backport-29902
TYP: wrong argument defaults in ``testing._private`` (#29902)
2 parents e976c7e + 8e3da6f commit f8908c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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: ...

numpy/testing/_private/utils.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ else:
170170
def memusage() -> NoReturn: ...
171171

172172
if sys.platform == "linux":
173-
def jiffies(_proc_pid_stat: StrOrBytesPath = ..., _load_time: list[float] = []) -> int: ...
173+
def jiffies(_proc_pid_stat: StrOrBytesPath | None = None, _load_time: list[float] | None = None) -> int: ...
174174
else:
175175
def jiffies(_load_time: list[float] = []) -> int: ...
176176

0 commit comments

Comments
 (0)