diff --git a/stubs/psutil/METADATA.toml b/stubs/psutil/METADATA.toml index 9cd22571b..aeea3dbe0 100644 --- a/stubs/psutil/METADATA.toml +++ b/stubs/psutil/METADATA.toml @@ -1,4 +1,4 @@ -version = "5.9.*" +version = "6.0.*" upstream_repository = "https://github.com/giampaolo/psutil" [tool.stubtest] diff --git a/stubs/psutil/psutil/__init__.pyi b/stubs/psutil/psutil/__init__.pyi index c68c1d214..46bd4b2d2 100644 --- a/stubs/psutil/psutil/__init__.pyi +++ b/stubs/psutil/psutil/__init__.pyi @@ -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: ... diff --git a/stubs/psutil/psutil/_common.pyi b/stubs/psutil/psutil/_common.pyi index d755aa61d..7ea0bbb81 100644 --- a/stubs/psutil/psutil/_common.pyi +++ b/stubs/psutil/psutil/_common.pyi @@ -89,8 +89,6 @@ class sdiskpart(NamedTuple): mountpoint: str fstype: str opts: str - maxfile: int - maxpath: int class snetio(NamedTuple): bytes_sent: int diff --git a/stubs/psutil/psutil/_compat.pyi b/stubs/psutil/psutil/_compat.pyi index 49fd95621..9bdcbe7d1 100644 --- a/stubs/psutil/psutil/_compat.pyi +++ b/stubs/psutil/psutil/_compat.pyi @@ -20,7 +20,6 @@ xrange = range unicode = str basestring = str -def u(s): ... def b(s): ... SubprocessTimeoutExpired = TimeoutExpired diff --git a/stubs/psutil/psutil/_psaix.pyi b/stubs/psutil/psutil/_psaix.pyi index 4b0dabdbe..c74f03021 100644 --- a/stubs/psutil/psutil/_psaix.pyi +++ b/stubs/psutil/psutil/_psaix.pyi @@ -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): ... diff --git a/stubs/psutil/psutil/_psbsd.pyi b/stubs/psutil/psutil/_psbsd.pyi index 16895183f..9e85dd9de 100644 --- a/stubs/psutil/psutil/_psbsd.pyi +++ b/stubs/psutil/psutil/_psbsd.pyi @@ -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): ... diff --git a/stubs/psutil/psutil/_pslinux.pyi b/stubs/psutil/psutil/_pslinux.pyi index 3e390fda7..70b78688a 100644 --- a/stubs/psutil/psutil/_pslinux.pyi +++ b/stubs/psutil/psutil/_pslinux.pyi @@ -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=...): ... diff --git a/stubs/psutil/psutil/_psosx.pyi b/stubs/psutil/psutil/_psosx.pyi index 895d66f79..85bb909e5 100644 --- a/stubs/psutil/psutil/_psosx.pyi +++ b/stubs/psutil/psutil/_psosx.pyi @@ -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): ... diff --git a/stubs/psutil/psutil/_pssunos.pyi b/stubs/psutil/psutil/_pssunos.pyi index f5782aa0b..480dedfe7 100644 --- a/stubs/psutil/psutil/_pssunos.pyi +++ b/stubs/psutil/psutil/_pssunos.pyi @@ -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 diff --git a/stubs/psutil/psutil/_psutil_osx.pyi b/stubs/psutil/psutil/_psutil_osx.pyi index 79f291bf9..3a6ea7372 100644 --- a/stubs/psutil/psutil/_psutil_osx.pyi +++ b/stubs/psutil/psutil/_psutil_osx.pyi @@ -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: ... diff --git a/stubs/psutil/psutil/_pswindows.pyi b/stubs/psutil/psutil/_pswindows.pyi index eb3bd612c..606383aef 100644 --- a/stubs/psutil/psutil/_pswindows.pyi +++ b/stubs/psutil/psutil/_pswindows.pyi @@ -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): ...