Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions stubs/psutil/@tests/stubtest_allowlist_darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ psutil._pslinux
psutil._psutil_linux
psutil._psutil_windows
psutil._pswindows

# not always available on ARM64, but we test there
psutil.cpu_freq
psutil._psosx.cpu_freq
2 changes: 1 addition & 1 deletion stubs/psutil/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "7.0.*"
version = "7.1.*"
upstream_repository = "https://github.com/giampaolo/psutil"

[tool.stubtest]
Expand Down
4 changes: 2 additions & 2 deletions stubs/psutil/psutil/_pslinux.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ HAS_PROC_IO_PRIORITY: Any
HAS_CPU_AFFINITY: Any
CLOCK_TICKS: Any
PAGESIZE: Any
BOOT_TIME: Any
LITTLE_ENDIAN: Any
UNSET: object
DISK_SECTOR_SIZE: int
AF_LINK: Any
AddressFamily: Any
Expand Down Expand Up @@ -213,7 +213,7 @@ class Process:
def cpu_times(self): ...
def cpu_num(self): ...
def wait(self, timeout: Incomplete | None = ...): ...
def create_time(self): ...
def create_time(self, monotonic: bool = False): ...
def memory_info(self): ...
def memory_full_info(self): ...
def memory_maps(self): ...
Expand Down
6 changes: 5 additions & 1 deletion stubs/psutil/psutil/_psosx.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ net_if_addrs: Any
def net_connections(kind: str = "inet"): ...
def net_if_stats(): ...
def boot_time(): ...

INIT_BOOT_TIME: float

def adjust_proc_create_time(ctime: float) -> float: ...
def users(): ...
def pids(): ...

Expand All @@ -96,7 +100,7 @@ class Process:
def memory_info(self): ...
def memory_full_info(self): ...
def cpu_times(self): ...
def create_time(self): ...
def create_time(self, monotonic: bool = False): ...
def num_ctx_switches(self): ...
def num_threads(self): ...
def open_files(self): ...
Expand Down
1 change: 0 additions & 1 deletion stubs/psutil/psutil/_psutil_linux.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ def proc_cpu_affinity_set(*args, **kwargs) -> Any: ...
def proc_ioprio_get(*args, **kwargs) -> Any: ...
def proc_ioprio_set(*args, **kwargs) -> Any: ...
def set_debug(*args, **kwargs) -> Any: ...
def users(*args, **kwargs) -> Any: ...
2 changes: 1 addition & 1 deletion stubs/psutil/psutil/_psutil_osx.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def cpu_times(*args, **kwargs) -> Any: ...
def disk_io_counters(*args, **kwargs) -> Any: ...
def disk_partitions(*args, **kwargs) -> Any: ...
def disk_usage_used(*args, **kwargs) -> Any: ...
def has_cpu_freq(*args, **kwargs) -> bool: ...
def net_io_counters(*args, **kwargs) -> Any: ...
def per_cpu_times(*args, **kwargs) -> Any: ...
def pids(*args, **kwargs) -> Any: ...
Expand All @@ -47,5 +48,4 @@ def proc_threads(*args, **kwargs) -> Any: ...
def sensors_battery(*args, **kwargs) -> Any: ...
def set_debug(*args, **kwargs) -> Any: ...
def swap_mem(*args, **kwargs) -> Any: ...
def users(*args, **kwargs) -> Any: ...
def virtual_mem(*args, **kwargs) -> Any: ...
1 change: 1 addition & 0 deletions stubs/psutil/psutil/_psutil_posix.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ if sys.platform == "darwin":
def net_if_duplex_speed(*args, **kwargs): ...

def setpriority(*args, **kwargs) -> Any: ...
def users(*args, **kwargs) -> Any: ...
2 changes: 1 addition & 1 deletion stubs/psutil/psutil/_psutil_windows.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TimeoutAbandoned(Exception): ...
class TimeoutExpired(Exception): ...

def QueryDosDevice(*args, **kwargs): ... # incomplete
def boot_time(*args, **kwargs): ... # incomplete
def uptime(*args, **kwargs): ... # incomplete
def check_pid_range(pid: int, /) -> None: ...
def cpu_count_cores(*args, **kwargs): ... # incomplete
def cpu_count_logical(*args, **kwargs): ... # incomplete
Expand Down