Skip to content

Commit b3cfddf

Browse files
committed
👽️ numpy 2.3 changes in testing.utils
1 parent b414e63 commit b3cfddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/numpy-stubs/testing/_private/utils.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ if sys.platform != "win32" and sys.platform != "cygwin" and sys.platform != "lin
166166
def memusage() -> NoReturn: ...
167167

168168
elif sys.platform == "win32" or sys.platform == "cygwin":
169-
def memusage(processName: str = ..., instance: int = ...) -> int: ...
169+
def memusage(processName: str = "python", instance: int = 0) -> int: ...
170170

171171
else:
172-
def memusage(_proc_pid_stat: StrOrBytesPath = ...) -> int | None: ...
172+
def memusage(_proc_pid_stat: StrOrBytesPath | None = None) -> int | None: ...
173173

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

178178
else:
179179
def jiffies(_load_time: list[float] = []) -> int: ...

0 commit comments

Comments
 (0)