mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-09 06:46:18 +08:00
Update psutil to 7.0.* (#13507)
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
# TODO: missing from stub
|
||||
psutil.__all__
|
||||
psutil._common.__all__
|
||||
psutil._compat.__all__
|
||||
psutil._psposix.__all__
|
||||
|
||||
# These super() dunders don't seem to be particularly useful,
|
||||
# and having them pop up on autocomplete suggestions would be annoying
|
||||
psutil._compat.super.__self__
|
||||
psutil._compat.super.__self_class__
|
||||
psutil._compat.super.__thisclass__
|
||||
|
||||
# Stubtest does not support these platforms
|
||||
psutil._psaix
|
||||
psutil._psbsd
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version = "6.1.*"
|
||||
version = "7.0.*"
|
||||
upstream_repository = "https://github.com/giampaolo/psutil"
|
||||
|
||||
[tool.stubtest]
|
||||
|
||||
@@ -214,7 +214,6 @@ class Process:
|
||||
def cpu_percent(self, interval: float | None = None) -> float: ...
|
||||
def cpu_times(self) -> pcputimes: ...
|
||||
def memory_info(self) -> pmem: ...
|
||||
def memory_info_ex(self) -> pmem: ...
|
||||
def memory_full_info(self) -> pfullmem: ...
|
||||
def memory_percent(self, memtype: str = "rss") -> float: ...
|
||||
def open_files(self) -> list[popenfile]: ...
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
from builtins import (
|
||||
ChildProcessError as ChildProcessError,
|
||||
FileExistsError as FileExistsError,
|
||||
FileNotFoundError as FileNotFoundError,
|
||||
InterruptedError as InterruptedError,
|
||||
PermissionError as PermissionError,
|
||||
ProcessLookupError as ProcessLookupError,
|
||||
range as range,
|
||||
super as super,
|
||||
)
|
||||
from contextlib import redirect_stderr as redirect_stderr
|
||||
from functools import lru_cache as lru_cache
|
||||
from shutil import get_terminal_size as get_terminal_size, which as which
|
||||
from subprocess import TimeoutExpired
|
||||
from typing import Literal
|
||||
|
||||
PY3: Literal[True]
|
||||
long = int
|
||||
xrange = range
|
||||
unicode = str
|
||||
basestring = str
|
||||
|
||||
def b(s): ...
|
||||
|
||||
SubprocessTimeoutExpired = TimeoutExpired
|
||||
@@ -13,12 +13,6 @@ from psutil._common import (
|
||||
memoize_when_activated as memoize_when_activated,
|
||||
usage_percent as usage_percent,
|
||||
)
|
||||
from psutil._compat import (
|
||||
PY3 as PY3,
|
||||
FileNotFoundError as FileNotFoundError,
|
||||
PermissionError as PermissionError,
|
||||
ProcessLookupError as ProcessLookupError,
|
||||
)
|
||||
|
||||
__extra__all__: Incomplete
|
||||
HAS_THREADS: Incomplete
|
||||
|
||||
@@ -15,7 +15,6 @@ from psutil._common import (
|
||||
supports_ipv6 as supports_ipv6,
|
||||
usage_percent as usage_percent,
|
||||
)
|
||||
from psutil._compat import PY3 as PY3
|
||||
|
||||
__extra__all__: Any
|
||||
POWER_SUPPLY_PATH: str
|
||||
@@ -145,8 +144,6 @@ class scputimes(NamedTuple):
|
||||
guest: float
|
||||
guest_nice: float
|
||||
|
||||
prlimit: Any
|
||||
|
||||
def calculate_avail_vmem(mems): ...
|
||||
def virtual_memory() -> svmem: ...
|
||||
def swap_memory(): ...
|
||||
|
||||
@@ -14,13 +14,6 @@ from psutil._common import (
|
||||
socktype_to_enum as socktype_to_enum,
|
||||
usage_percent as usage_percent,
|
||||
)
|
||||
from psutil._compat import (
|
||||
PY3 as PY3,
|
||||
FileNotFoundError as FileNotFoundError,
|
||||
PermissionError as PermissionError,
|
||||
ProcessLookupError as ProcessLookupError,
|
||||
b as b,
|
||||
)
|
||||
|
||||
__extra__all__: Incomplete
|
||||
PAGE_SIZE: Incomplete
|
||||
|
||||
@@ -6,7 +6,6 @@ from typing import Any, NamedTuple
|
||||
from psutil import _psutil_windows
|
||||
from psutil._common import (
|
||||
ENCODING as ENCODING,
|
||||
ENCODING_ERRS as ENCODING_ERRS,
|
||||
AccessDenied as AccessDenied,
|
||||
NoSuchProcess as NoSuchProcess,
|
||||
TimeoutExpired as TimeoutExpired,
|
||||
@@ -18,7 +17,6 @@ from psutil._common import (
|
||||
parse_environ_block as parse_environ_block,
|
||||
usage_percent as usage_percent,
|
||||
)
|
||||
from psutil._compat import PY3 as PY3
|
||||
from psutil._psutil_windows import (
|
||||
ABOVE_NORMAL_PRIORITY_CLASS as ABOVE_NORMAL_PRIORITY_CLASS,
|
||||
BELOW_NORMAL_PRIORITY_CLASS as BELOW_NORMAL_PRIORITY_CLASS,
|
||||
@@ -116,7 +114,6 @@ class pio(NamedTuple):
|
||||
other_bytes: Any
|
||||
|
||||
def convert_dos_path(s): ...
|
||||
def py2_strencode(s): ...
|
||||
def getpagesize(): ...
|
||||
def virtual_memory() -> svmem: ...
|
||||
def swap_memory(): ...
|
||||
|
||||
Reference in New Issue
Block a user