mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
psutil: deprecate Process.connections (#12174)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user