Add missing defaults to third-party stubs (#14617)

This commit is contained in:
Jelle Zijlstra
2025-08-21 13:36:29 -07:00
committed by GitHub
parent 82926783a4
commit 573b57d8da
54 changed files with 383 additions and 376 deletions
+2 -2
View File
@@ -244,11 +244,11 @@ def wait_procs(
) -> tuple[list[Process], list[Process]]: ...
def cpu_count(logical: bool = True) -> int | None: ...
@overload
def cpu_freq(percpu: Literal[False] = ...) -> scpufreq: ...
def cpu_freq(percpu: Literal[False] = False) -> scpufreq: ...
@overload
def cpu_freq(percpu: Literal[True]) -> list[scpufreq]: ...
@overload
def cpu_times(percpu: Literal[False] = ...) -> scputimes: ...
def cpu_times(percpu: Literal[False] = False) -> scputimes: ...
@overload
def cpu_times(percpu: Literal[True]) -> list[scputimes]: ...
@overload
+4 -4
View File
@@ -61,13 +61,13 @@ def cpu_freq(): ...
disk_usage: Any
disk_io_counters: Any
def disk_partitions(all: bool = ...): ...
def disk_partitions(all: bool = False): ...
def sensors_battery(): ...
net_io_counters: Any
net_if_addrs: Any
def net_connections(kind: str = ...): ...
def net_connections(kind: str = "inet"): ...
def net_if_stats(): ...
def boot_time(): ...
def users(): ...
@@ -99,9 +99,9 @@ class Process:
def num_ctx_switches(self): ...
def num_threads(self): ...
def open_files(self): ...
def net_connections(self, kind: str = ...): ...
def net_connections(self, kind: str = "inet"): ...
def num_fds(self): ...
def wait(self, timeout: Incomplete | None = ...): ...
def wait(self, timeout=None): ...
def nice_get(self): ...
def nice_set(self, value): ...
def status(self): ...