Skip to content

Commit 5237f09

Browse files
committed
add more CR suggestions
1 parent 0ce81ae commit 5237f09

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

stubs/psutil/psutil/_psbsd.pyi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from psutil._common import (
1111
ZombieProcess as ZombieProcess,
1212
conn_tmap as conn_tmap,
1313
conn_to_ntuple as conn_to_ntuple,
14+
debug as debug,
1415
memoize as memoize,
1516
pio,
1617
usage_percent as usage_percent,
@@ -21,10 +22,7 @@ PROC_STATUSES: Incomplete
2122
TCP_STATUSES: Incomplete
2223
PAGESIZE: Incomplete
2324
AF_LINK: Incomplete
24-
HAS_PER_CPU_TIMES: Incomplete
2525
HAS_PROC_NUM_THREADS: Incomplete
26-
HAS_PROC_OPEN_FILES: Incomplete
27-
HAS_PROC_NUM_FDS: Incomplete
2826
kinfo_proc_map: Incomplete
2927

3028
class svmem(NamedTuple):
@@ -108,6 +106,10 @@ def sensors_temperatures(): ...
108106
def cpu_freq(): ...
109107
def boot_time(): ...
110108
def users(): ...
109+
110+
INIT_BOOT_TIME: float
111+
112+
def adjust_proc_create_time(ctime: float) -> float: ...
111113
def pids(): ...
112114
def pid_exists(pid): ...
113115
def is_zombie(pid): ...
@@ -132,7 +134,7 @@ class Process:
132134
def cpu_num(self): ...
133135
def memory_info(self): ...
134136
memory_full_info: Incomplete
135-
def create_time(self): ...
137+
def create_time(self, monotonic: bool = False) -> float: ...
136138
def num_threads(self): ...
137139
def num_ctx_switches(self): ...
138140
def threads(self): ...

stubs/psutil/psutil/_pslinux.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class Process:
213213
def cpu_times(self): ...
214214
def cpu_num(self): ...
215215
def wait(self, timeout: Incomplete | None = ...): ...
216-
def create_time(self, monotonic: bool = False): ...
216+
def create_time(self, monotonic: bool = False) -> float: ...
217217
def memory_info(self): ...
218218
def memory_full_info(self): ...
219219
def memory_maps(self): ...

0 commit comments

Comments
 (0)