Improves psutil (#6103)

Add a few items and annotations to psutil
This commit is contained in:
Nikita Sobolev
2021-10-07 10:37:50 +03:00
committed by GitHub
parent 55cf343ba9
commit 88cb22e952

View File

@@ -93,14 +93,16 @@ if sys.platform == "win32":
IOPRIO_LOW as IOPRIO_LOW,
IOPRIO_NORMAL as IOPRIO_NORMAL,
IOPRIO_VERYLOW as IOPRIO_VERYLOW,
win_service_get as win_service_get,
win_service_iter as win_service_iter,
)
if sys.platform == "linux":
PROCFS_PATH: str
AF_LINK: Any
AF_LINK: int
version_info: tuple[int, int, int]
__version__: str
__author__: str
class Process:
def __init__(self, pid: int | None = ...) -> None: ...
@@ -132,7 +134,7 @@ class Process:
def io_counters(self): ...
def ionice(self, ioclass: int | None = ..., value: int | None = ...) -> pionice: ...
if sys.platform == "linux":
def rlimit(self, resource: int, limits: tuple[int, int] | None = ...): ...
def rlimit(self, resource: int, limits: tuple[int, int] | None = ...) -> tuple[int, int]: ...
if sys.platform != "darwin":
def cpu_affinity(self, cpus: list[int] | None = ...) -> list[int] | None: ...
if sys.platform == "linux":