From 84ef0308072c1857eaa05510477b7f1f1fc37ffb Mon Sep 17 00:00:00 2001 From: ANSHUL SINGH <72524975+ekanshul@users.noreply.github.com> Date: Thu, 20 Aug 2026 02:18:46 +0530 Subject: [PATCH] [psutil] Type the memory map and heap namedtuple fields Co-Authored-By: Claude Fable 5 --- stubs/psutil/psutil/_ntuples.pyi | 70 ++++++++++++++++---------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/stubs/psutil/psutil/_ntuples.pyi b/stubs/psutil/psutil/_ntuples.pyi index b61b6ac2db36..7e47772cdf77 100644 --- a/stubs/psutil/psutil/_ntuples.pyi +++ b/stubs/psutil/psutil/_ntuples.pyi @@ -104,15 +104,15 @@ class sfan(NamedTuple): if sys.platform == "win32": class pheap(NamedTuple): - heap_used: Incomplete - mmap_used: Incomplete - heap_count: Incomplete + heap_used: int + mmap_used: int + heap_count: int else: # if LINUX or MACOS or BSD: class pheap(NamedTuple): - heap_used: Incomplete - mmap_used: Incomplete + heap_used: int + mmap_used: int # redefine for linux: if sys.platform != "linux": @@ -237,32 +237,32 @@ if sys.platform == "linux": swap: int class pmmap_grouped(NamedTuple): - path: Incomplete - rss: Incomplete - size: Incomplete - pss: Incomplete - shared_clean: Incomplete - shared_dirty: Incomplete - private_clean: Incomplete - private_dirty: Incomplete - referenced: Incomplete - anonymous: Incomplete - swap: Incomplete + path: str + rss: int + size: int + pss: int + shared_clean: int + shared_dirty: int + private_clean: int + private_dirty: int + referenced: int + anonymous: int + swap: int class pmmap_ext(NamedTuple): - addr: Incomplete - perms: Incomplete - path: Incomplete - rss: Incomplete - size: Incomplete - pss: Incomplete - shared_clean: Incomplete - shared_dirty: Incomplete - private_clean: Incomplete - private_dirty: Incomplete - referenced: Incomplete - anonymous: Incomplete - swap: Incomplete + addr: str + perms: str + path: str + rss: int + size: int + pss: int + shared_clean: int + shared_dirty: int + private_clean: int + private_dirty: int + referenced: int + anonymous: int + swap: int class pio(NamedTuple): read_count: int @@ -324,14 +324,14 @@ elif sys.platform == "win32": uss: int class pmmap_grouped(NamedTuple): - path: Incomplete - rss: Incomplete + path: str + rss: int class pmmap_ext(NamedTuple): - addr: Incomplete - perms: Incomplete - path: Incomplete - rss: Incomplete + addr: str + perms: str + path: str + rss: int class pio(NamedTuple): read_count: int