Skip to content

[psutil] Add __all__ - #16259

Merged
srittau merged 2 commits into
python:mainfrom
ekanshul:psutil-all
Aug 20, 2026
Merged

[psutil] Add __all__#16259
srittau merged 2 commits into
python:mainfrom
ekanshul:psutil-all

Conversation

@ekanshul

Copy link
Copy Markdown
Contributor

The psutil stubs had psutil.__all__ on the stubtest allowlist with a "missing from stub" TODO. This adds __all__ to psutil/__init__.pyi, mirroring the runtime list plus the platform-specific names that psutil appends on Linux (PROCFS_PATH, IOPRIO_CLASS_*, RLIM*, sensors_temperatures, sensors_fans) and Windows (win_service_*, priority and I/O priority classes, CONN_DELETE_TCB), and removes the allowlist entry. On macOS the runtime only adds cpu_freq to __all__ when it is available, which it is not on the ARM64 CI runners, so psutil.__all__ is allowlisted next to the existing cpu_freq entries in the darwin allowlist.

Agent used: Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 2e4c722 into python:main Aug 20, 2026
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants