File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 11version = " 25.9.*"
22upstream_repository = " https://github.com/gevent/gevent"
3- requires = [" types-greenlet" , " types-psutil" ]
3+ requires = [" types-greenlet" , " types-psutil>=7.2.0 " ]
44
55[tool .stubtest ]
66# Run stubtest on all platforms, since there is some platform specific stuff
Original file line number Diff line number Diff line change 1- import sys
21from collections .abc import Callable , Mapping , Sequence
32from types import ModuleType
43from typing import Any , Protocol , TypeVar , type_check_only
54from typing_extensions import TypeAlias
65
76from gevent .hub import Hub
87from greenlet import greenlet as greenlet_t
8+ from psutil ._ntuples import pmem
99
1010_T = TypeVar ("_T" )
1111# FIXME: While it would be nice to import Interface from zope.interface here so the
@@ -17,17 +17,6 @@ Interface: TypeAlias = Any
1717
1818def implementer (interface : Interface , / ) -> Callable [[_T ], _T ]: ...
1919
20- # this is copied from types-psutil, it would be nice if we could just import this
21- # but it doesn't seem like we can...
22- if sys .platform == "linux" :
23- from psutil ._pslinux import pmem
24- elif sys .platform == "darwin" :
25- from psutil ._psosx import pmem
26- elif sys .platform == "win32" :
27- from psutil ._pswindows import pmem
28- else :
29- class pmem (Any ): ...
30-
3120subscribers : list [Callable [[Any ], object ]]
3221
3322@type_check_only
You can’t perform that action at this time.
0 commit comments