Skip to content

Commit d923624

Browse files
committed
correct aviability heap functions
1 parent ed1c20d commit d923624

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stubs/psutil/psutil/__init__.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ if sys.platform == "linux":
6565
)
6666
def sensors_temperatures(fahrenheit: bool = False) -> dict[str, list[_ntp.shwtemp]]: ...
6767
def sensors_fans() -> dict[str, list[_ntp.sfan]]: ...
68-
def heap_info() -> _ntp.pheap: ...
69-
def heap_trim() -> None: ...
7068
PROCFS_PATH: str
7169
RLIMIT_AS: int
7270
RLIMIT_CORE: int
@@ -104,6 +102,10 @@ if sys.platform == "win32":
104102
win_service_iter as win_service_iter,
105103
)
106104

105+
# Linux + glibc, Windows, macOS, FreeBSD, NetBSD:
106+
def heap_info() -> _ntp.pheap: ...
107+
def heap_trim() -> None: ...
108+
107109
if sys.platform == "linux":
108110
from ._pslinux import sensors_battery as sensors_battery
109111
elif sys.platform == "darwin":

0 commit comments

Comments
 (0)