psutil: deprecate Process.connections (#12174)

This commit is contained in:
Nikita Sobolev
2024-06-20 15:34:29 +03:00
committed by GitHub
parent 29f6bc3763
commit 05b975a81f

View File

@@ -3,7 +3,7 @@ from _typeshed import Incomplete
from collections.abc import Callable, Iterable, Iterator
from contextlib import AbstractContextManager
from typing import Any, Literal, overload
from typing_extensions import Self, TypeAlias
from typing_extensions import Self, TypeAlias, deprecated
from psutil._common import (
AIX as AIX,
@@ -216,6 +216,7 @@ class Process:
def memory_full_info(self) -> pfullmem: ...
def memory_percent(self, memtype: str = "rss") -> float: ...
def open_files(self) -> list[popenfile]: ...
@deprecated('use "net_connections" method instead')
def connections(self, kind: str = "inet") -> list[pconn]: ...
def send_signal(self, sig: int) -> None: ...
def suspend(self) -> None: ...