mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
psutil: declare return type of io_counters() (#10303)
This commit is contained in:
@@ -55,6 +55,7 @@ from psutil._common import (
|
||||
pcputimes,
|
||||
pctxsw,
|
||||
pgids,
|
||||
pio,
|
||||
pionice,
|
||||
popenfile,
|
||||
pthread,
|
||||
@@ -184,7 +185,7 @@ class Process:
|
||||
def terminal(self) -> str: ...
|
||||
def num_fds(self) -> int: ...
|
||||
if sys.platform != "darwin":
|
||||
def io_counters(self): ...
|
||||
def io_counters(self) -> pio: ...
|
||||
def ionice(self, ioclass: int | None = None, value: int | None = None) -> pionice: ...
|
||||
def cpu_affinity(self, cpus: list[int] | None = None) -> list[int] | None: ...
|
||||
def memory_maps(self, grouped: bool = True): ...
|
||||
|
||||
@@ -12,6 +12,7 @@ from psutil._common import (
|
||||
conn_tmap as conn_tmap,
|
||||
conn_to_ntuple as conn_to_ntuple,
|
||||
memoize as memoize,
|
||||
pio,
|
||||
usage_percent as usage_percent,
|
||||
)
|
||||
|
||||
@@ -140,7 +141,7 @@ class Process:
|
||||
def nice_get(self): ...
|
||||
def nice_set(self, value): ...
|
||||
def status(self): ...
|
||||
def io_counters(self): ...
|
||||
def io_counters(self) -> pio: ...
|
||||
def cwd(self): ...
|
||||
|
||||
class nt_mmap_grouped(NamedTuple):
|
||||
|
||||
@@ -199,7 +199,7 @@ class Process:
|
||||
def cmdline(self): ...
|
||||
def environ(self): ...
|
||||
def terminal(self): ...
|
||||
def io_counters(self): ...
|
||||
def io_counters(self) -> pio: ...
|
||||
def cpu_times(self): ...
|
||||
def cpu_num(self): ...
|
||||
def wait(self, timeout: Incomplete | None = ...): ...
|
||||
|
||||
@@ -193,7 +193,7 @@ class Process:
|
||||
def nice_set(self, value): ...
|
||||
def ionice_get(self): ...
|
||||
def ionice_set(self, ioclass, value) -> None: ...
|
||||
def io_counters(self): ...
|
||||
def io_counters(self) -> pio: ...
|
||||
def status(self): ...
|
||||
def cpu_affinity_get(self): ...
|
||||
def cpu_affinity_set(self, value): ...
|
||||
|
||||
Reference in New Issue
Block a user