Skip to content

Commit

Permalink
Bump pyright to 1.1.294; improve psutil stubs (#9739)
Browse files Browse the repository at this point in the history
Partially type psfullmem
  • Loading branch information
AlexWaygood authored Feb 15, 2023
1 parent 58edfea commit 8cd6d81
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ all = true
disable_all_dunder_policy = true

[tool.typeshed]
pyright_version = "1.1.292"
pyright_version = "1.1.294"
12 changes: 11 additions & 1 deletion stubs/psutil/psutil/_pslinux.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,17 @@ class pmem(NamedTuple):
data: Any
dirty: Any

pfullmem: Any
class pfullmem(NamedTuple):
rss: Incomplete
vms: Incomplete
shared: Incomplete
text: Incomplete
lib: Incomplete
data: Incomplete
dirty: Incomplete
uss: Incomplete
pss: Incomplete
swap: Incomplete

class pmmap_grouped(NamedTuple):
path: Any
Expand Down
7 changes: 6 additions & 1 deletion stubs/psutil/psutil/_psosx.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ class pmem(NamedTuple):
pfaults: Any
pageins: Any

pfullmem: Any
class pfullmem(NamedTuple):
rss: Incomplete
vms: Incomplete
pfaults: Incomplete
pageins: Incomplete
uss: Incomplete

def virtual_memory() -> svmem: ...
def swap_memory(): ...
Expand Down
15 changes: 14 additions & 1 deletion stubs/psutil/psutil/_pswindows.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,20 @@ class pmem(NamedTuple):
peak_pagefile: Any
private: Any

pfullmem: Any
class pfullmem(NamedTuple):
rss: Incomplete
vms: Incomplete
num_page_faults: Incomplete
peak_wset: Incomplete
wset: Incomplete
peak_paged_pool: Incomplete
paged_pool: Incomplete
peak_nonpaged_pool: Incomplete
nonpaged_pool: Incomplete
pagefile: Incomplete
peak_pagefile: Incomplete
private: Incomplete
uss: Incomplete

class pmmap_grouped(NamedTuple):
path: Any
Expand Down

0 comments on commit 8cd6d81

Please sign in to comment.