From af21ef5cb3d7e291d29fa4d4859345297d92e757 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sat, 2 Jul 2022 00:11:33 +0530 Subject: [PATCH] [stubsabot] Bump psutil to 5.9.* (#8213) Co-authored-by: hauntsaninja <> --- stubs/psutil/METADATA.toml | 2 +- stubs/psutil/psutil/_psbsd.pyi | 2 +- stubs/psutil/psutil/_pslinux.pyi | 7 ++----- stubs/psutil/psutil/_psosx.pyi | 4 +--- stubs/psutil/psutil/_psutil_linux.pyi | 1 - stubs/psutil/psutil/_pswindows.pyi | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/stubs/psutil/METADATA.toml b/stubs/psutil/METADATA.toml index 295659a16..96a1afa55 100644 --- a/stubs/psutil/METADATA.toml +++ b/stubs/psutil/METADATA.toml @@ -1 +1 @@ -version = "5.8.*" +version = "5.9.*" diff --git a/stubs/psutil/psutil/_psbsd.pyi b/stubs/psutil/psutil/_psbsd.pyi index 6a4df8e9a..5a166f2bf 100644 --- a/stubs/psutil/psutil/_psbsd.pyi +++ b/stubs/psutil/psutil/_psbsd.pyi @@ -90,7 +90,7 @@ def swap_memory(): ... def cpu_times(): ... def per_cpu_times(): ... def cpu_count_logical(): ... -def cpu_count_physical(): ... +def cpu_count_cores() -> int | None: ... def cpu_stats(): ... def disk_partitions(all: bool = ...): ... diff --git a/stubs/psutil/psutil/_pslinux.pyi b/stubs/psutil/psutil/_pslinux.pyi index 6794cfb3b..f7c70a745 100644 --- a/stubs/psutil/psutil/_pslinux.pyi +++ b/stubs/psutil/psutil/_pslinux.pyi @@ -17,13 +17,11 @@ from ._common import ( __extra__all__: Any POWER_SUPPLY_PATH: str -HAS_SMAPS: Any HAS_PROC_IO_PRIORITY: Any HAS_CPU_AFFINITY: Any CLOCK_TICKS: Any PAGESIZE: Any BOOT_TIME: Any -BIGFILE_BUFFERING: Any LITTLE_ENDIAN: Any DISK_SECTOR_SIZE: int AF_LINK: Any @@ -118,7 +116,6 @@ def readlink(path): ... def file_flags_to_mode(flags): ... def is_storage_device(name): ... def set_scputimes_ntuple(procfs_path) -> None: ... -def cat(fname, fallback=..., binary: bool = ...): ... scputimes: Any prlimit: Any @@ -129,7 +126,7 @@ def swap_memory(): ... def cpu_times(): ... def per_cpu_times(): ... def cpu_count_logical(): ... -def cpu_count_physical(): ... +def cpu_count_cores() -> int | None: ... def cpu_stats(): ... def cpu_freq(): ... @@ -184,7 +181,7 @@ class Process: def wait(self, timeout: Any | None = ...): ... def create_time(self): ... def memory_info(self): ... - def memory_full_info(self, _private_re=..., _pss_re=..., _swap_re=...): ... + def memory_full_info(self): ... def memory_maps(self): ... def cwd(self): ... def num_ctx_switches(self, _ctxsw_re=...): ... diff --git a/stubs/psutil/psutil/_psosx.pyi b/stubs/psutil/psutil/_psosx.pyi index e62d9de09..ead3f1d7e 100644 --- a/stubs/psutil/psutil/_psosx.pyi +++ b/stubs/psutil/psutil/_psosx.pyi @@ -1,4 +1,3 @@ -from contextlib import AbstractContextManager from typing import Any, NamedTuple from ._common import ( @@ -49,7 +48,7 @@ def swap_memory(): ... def cpu_times(): ... def per_cpu_times(): ... def cpu_count_logical(): ... -def cpu_count_physical(): ... +def cpu_count_cores() -> int | None: ... def cpu_stats(): ... def cpu_freq(): ... @@ -72,7 +71,6 @@ pid_exists: Any def is_zombie(pid): ... def wrap_exceptions(fun): ... -def catch_zombie(proc) -> AbstractContextManager[None]: ... class Process: pid: Any diff --git a/stubs/psutil/psutil/_psutil_linux.pyi b/stubs/psutil/psutil/_psutil_linux.pyi index 949d6a7e7..4902db44a 100644 --- a/stubs/psutil/psutil/_psutil_linux.pyi +++ b/stubs/psutil/psutil/_psutil_linux.pyi @@ -12,5 +12,4 @@ def proc_cpu_affinity_get(*args, **kwargs) -> Any: ... def proc_cpu_affinity_set(*args, **kwargs) -> Any: ... def proc_ioprio_get(*args, **kwargs) -> Any: ... def proc_ioprio_set(*args, **kwargs) -> Any: ... -def set_testing(*args, **kwargs) -> Any: ... def users(*args, **kwargs) -> Any: ... diff --git a/stubs/psutil/psutil/_pswindows.pyi b/stubs/psutil/psutil/_pswindows.pyi index 6d39f0e75..93fd4380a 100644 --- a/stubs/psutil/psutil/_pswindows.pyi +++ b/stubs/psutil/psutil/_pswindows.pyi @@ -111,7 +111,7 @@ def disk_partitions(all): ... def cpu_times(): ... def per_cpu_times(): ... def cpu_count_logical(): ... -def cpu_count_physical(): ... +def cpu_count_cores() -> int | None: ... def cpu_stats(): ... def cpu_freq(): ... def getloadavg(): ...