mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
Bump psutil to 6.0.* (#12167)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version = "5.9.*"
|
||||
version = "6.0.*"
|
||||
upstream_repository = "https://github.com/giampaolo/psutil"
|
||||
|
||||
[tool.stubtest]
|
||||
|
||||
@@ -223,6 +223,7 @@ class Process:
|
||||
def terminate(self) -> None: ...
|
||||
def kill(self) -> None: ...
|
||||
def wait(self, timeout: float | None = None) -> int: ...
|
||||
def net_connections(self, kind: str = "inet") -> list[pconn]: ...
|
||||
|
||||
class Popen(Process):
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
@@ -89,8 +89,6 @@ class sdiskpart(NamedTuple):
|
||||
mountpoint: str
|
||||
fstype: str
|
||||
opts: str
|
||||
maxfile: int
|
||||
maxpath: int
|
||||
|
||||
class snetio(NamedTuple):
|
||||
bytes_sent: int
|
||||
|
||||
@@ -20,7 +20,6 @@ xrange = range
|
||||
unicode = str
|
||||
basestring = str
|
||||
|
||||
def u(s): ...
|
||||
def b(s): ...
|
||||
|
||||
SubprocessTimeoutExpired = TimeoutExpired
|
||||
|
||||
@@ -85,7 +85,7 @@ class Process:
|
||||
def create_time(self): ...
|
||||
def num_threads(self): ...
|
||||
def threads(self): ...
|
||||
def connections(self, kind: str = ...): ...
|
||||
def net_connections(self, kind: str = ...): ...
|
||||
def nice_get(self): ...
|
||||
def nice_set(self, value): ...
|
||||
def ppid(self): ...
|
||||
|
||||
@@ -136,7 +136,7 @@ class Process:
|
||||
def num_threads(self): ...
|
||||
def num_ctx_switches(self): ...
|
||||
def threads(self): ...
|
||||
def connections(self, kind: str = ...): ...
|
||||
def net_connections(self, kind: str = ...): ...
|
||||
def wait(self, timeout: Incomplete | None = ...): ...
|
||||
def nice_get(self): ...
|
||||
def nice_set(self, value): ...
|
||||
|
||||
@@ -148,7 +148,7 @@ net_if_addrs: Any
|
||||
|
||||
class _Ipv6UnsupportedError(Exception): ...
|
||||
|
||||
class Connections:
|
||||
class NetConnections:
|
||||
tmap: Any
|
||||
def __init__(self) -> None: ...
|
||||
def get_proc_inodes(self, pid): ...
|
||||
@@ -220,7 +220,7 @@ class Process:
|
||||
def rlimit(self, resource_, limits: Incomplete | None = ...): ...
|
||||
def status(self): ...
|
||||
def open_files(self): ...
|
||||
def connections(self, kind: str = ...): ...
|
||||
def net_connections(self, kind: str = ...): ...
|
||||
def num_fds(self): ...
|
||||
def ppid(self): ...
|
||||
def uids(self, _uids_re=...): ...
|
||||
|
||||
@@ -99,7 +99,7 @@ class Process:
|
||||
def num_ctx_switches(self): ...
|
||||
def num_threads(self): ...
|
||||
def open_files(self): ...
|
||||
def connections(self, kind: str = ...): ...
|
||||
def net_connections(self, kind: str = ...): ...
|
||||
def num_fds(self): ...
|
||||
def wait(self, timeout: Incomplete | None = ...): ...
|
||||
def nice_get(self): ...
|
||||
|
||||
@@ -114,7 +114,7 @@ class Process:
|
||||
def status(self): ...
|
||||
def threads(self): ...
|
||||
def open_files(self): ...
|
||||
def connections(self, kind: str = ...): ...
|
||||
def net_connections(self, kind: str = ...): ...
|
||||
|
||||
class nt_mmap_grouped(NamedTuple):
|
||||
path: Incomplete
|
||||
|
||||
@@ -33,7 +33,7 @@ def net_io_counters(*args, **kwargs) -> Any: ...
|
||||
def per_cpu_times(*args, **kwargs) -> Any: ...
|
||||
def pids(*args, **kwargs) -> Any: ...
|
||||
def proc_cmdline(*args, **kwargs) -> Any: ...
|
||||
def proc_connections(*args, **kwargs) -> Any: ...
|
||||
def proc_net_connections(*args, **kwargs) -> Any: ...
|
||||
def proc_cwd(*args, **kwargs) -> Any: ...
|
||||
def proc_environ(*args, **kwargs) -> Any: ...
|
||||
def proc_exe(*args, **kwargs) -> Any: ...
|
||||
|
||||
@@ -190,7 +190,7 @@ class Process:
|
||||
def resume(self) -> None: ...
|
||||
def cwd(self): ...
|
||||
def open_files(self): ...
|
||||
def connections(self, kind: str = "inet"): ...
|
||||
def net_connections(self, kind: str = "inet"): ...
|
||||
def nice_get(self): ...
|
||||
def nice_set(self, value): ...
|
||||
def ionice_get(self): ...
|
||||
|
||||
Reference in New Issue
Block a user