mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 22:18:28 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user