Skip to content

Further improves psutil's NamedTuples #6021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 10, 2021
Merged
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
88 changes: 44 additions & 44 deletions stubs/psutil/psutil/_common.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -127,81 +127,81 @@ class snicstats(NamedTuple):
mtu: int

class scpustats(NamedTuple):
ctx_switches: Any
interrupts: Any
soft_interrupts: Any
syscalls: Any
ctx_switches: int
interrupts: int
soft_interrupts: int
syscalls: int

class scpufreq(NamedTuple):
current: Any
min: Any
max: Any
current: float
min: float
max: float

class shwtemp(NamedTuple):
label: Any
current: Any
high: Any
critical: Any
label: str
current: float
high: float | None
critical: float | None

class sbattery(NamedTuple):
percent: Any
secsleft: Any
power_plugged: Any
percent: int
secsleft: int
power_plugged: bool

class sfan(NamedTuple):
label: Any
current: Any
label: str
current: int

class pcputimes(NamedTuple):
user: Any
system: Any
children_user: Any
children_system: Any
user: float
system: float
children_user: float
children_system: float

class popenfile(NamedTuple):
path: Any
fd: Any
path: str
fd: int

class pthread(NamedTuple):
id: Any
user_time: Any
system_time: Any
id: int
user_time: float
system_time: float

class puids(NamedTuple):
real: Any
effective: Any
saved: Any
real: int
effective: int
saved: int

class pgids(NamedTuple):
real: Any
effective: Any
saved: Any
real: int
effective: int
saved: int

class pio(NamedTuple):
read_count: Any
write_count: Any
read_bytes: Any
write_bytes: Any
read_count: int
write_count: int
read_bytes: int
write_bytes: int

class pionice(NamedTuple):
ioclass: Any
value: Any
value: int

class pctxsw(NamedTuple):
voluntary: Any
involuntary: Any
voluntary: int
involuntary: int

class pconn(NamedTuple):
fd: Any
fd: int
family: Any
type: Any
laddr: Any
raddr: Any
status: Any
laddr: addr
raddr: addr
status: str

class addr(NamedTuple):
ip: Any
port: Any
ip: str
port: int

conn_tmap: Any

Expand Down