diff --git a/stubs/psutil/psutil/__init__.pyi b/stubs/psutil/psutil/__init__.pyi index d930e538d..41aa0041c 100644 --- a/stubs/psutil/psutil/__init__.pyi +++ b/stubs/psutil/psutil/__init__.pyi @@ -54,12 +54,15 @@ from ._common import ( popenfile, pthread, puids, + sbattery, sconn, scpufreq, scpustats, sdiskio, sdiskpart, sdiskusage, + sfan, + shwtemp, snetio, snicaddr, snicstats, @@ -133,7 +136,7 @@ class Process: def cpu_affinity(self, cpus: list[int] | None = ...) -> list[int] | None: ... if sys.platform == "linux": def cpu_num(self) -> int: ... - def environ(self): ... + def environ(self) -> dict[str, str]: ... if sys.platform == "win32": def num_handles(self) -> int: ... def num_ctx_switches(self) -> pctxsw: ... @@ -150,7 +153,7 @@ class Process: def memory_maps(self, grouped: bool = ...): ... def open_files(self) -> list[popenfile]: ... def connections(self, kind: str = ...) -> list[pconn]: ... - def send_signal(self, sig) -> None: ... + def send_signal(self, sig: int) -> None: ... def suspend(self) -> None: ... def resume(self) -> None: ... def terminate(self) -> None: ... @@ -189,11 +192,11 @@ def net_if_addrs() -> dict[str, list[snicaddr]]: ... def net_if_stats() -> dict[str, snicstats]: ... if sys.platform == "linux": - def sensors_temperatures(fahrenheit: bool = ...): ... - def sensors_fans(): ... + def sensors_temperatures(fahrenheit: bool = ...) -> dict[str, list[shwtemp]]: ... + def sensors_fans() -> dict[str, list[sfan]]: ... if sys.platform != "win32": - def sensors_battery(): ... + def sensors_battery() -> sbattery | None: ... def boot_time() -> float: ... def users() -> list[suser]: ...