Skip to content

Commit

Permalink
psutil: deprecate Process.connections (#12174)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jun 20, 2024
1 parent 29f6bc3 commit 05b975a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/psutil/psutil/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: ...
Expand Down

0 comments on commit 05b975a

Please sign in to comment.