[psutil] Update to 7.2.0 (#15173)

This commit is contained in:
Semyon Moroz
2025-12-27 11:28:34 +01:00
committed by GitHub
parent 019a38fdbd
commit 35fa2c83c5
18 changed files with 587 additions and 590 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
version = "25.9.*"
upstream_repository = "https://github.com/gevent/gevent"
requires = ["types-greenlet", "types-psutil"]
requires = ["types-greenlet", "types-psutil>=7.2.0"]
[tool.stubtest]
# Run stubtest on all platforms, since there is some platform specific stuff
+1 -12
View File
@@ -1,4 +1,3 @@
import sys
from collections.abc import Callable, Mapping, Sequence
from types import ModuleType
from typing import Any, Protocol, TypeVar, type_check_only
@@ -6,6 +5,7 @@ from typing_extensions import TypeAlias
from gevent.hub import Hub
from greenlet import greenlet as greenlet_t
from psutil._ntuples import pmem
_T = TypeVar("_T")
# FIXME: While it would be nice to import Interface from zope.interface here so the
@@ -17,17 +17,6 @@ Interface: TypeAlias = Any
def implementer(interface: Interface, /) -> Callable[[_T], _T]: ...
# this is copied from types-psutil, it would be nice if we could just import this
# but it doesn't seem like we can...
if sys.platform == "linux":
from psutil._pslinux import pmem
elif sys.platform == "darwin":
from psutil._psosx import pmem
elif sys.platform == "win32":
from psutil._pswindows import pmem
else:
class pmem(Any): ...
subscribers: list[Callable[[Any], object]]
@type_check_only