Skip to content

[psutil] Correct terminal and niceness return types - #16756

Open
iamabhisheknag wants to merge 2 commits into
python:mainfrom
iamabhisheknag:fix/psutil-optional-terminal
Open

iamabhisheknag wants to merge 2 commits into
python:mainfrom
iamabhisheknag:fix/psutil-optional-terminal

Conversation

@iamabhisheknag

@iamabhisheknag iamabhisheknag commented Nov 10, 2026 •

Copy link
Copy Markdown

Correct Process.terminal() to return str | None and overload Process.nice() to distinguish its integer getter from its None-returning setter, matching the upstream implementations.

AI assistance: OpenAI coding assistant (GPT-6).

@github-actions

This comment has been minimized.

@iamabhisheknag iamabhisheknag changed the title [psutil] Account for processes without a terminal [psutil] Correct terminal and niceness return types Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

This branch has not been deployed

No deployments
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.

1 participant