Skip to content

fix: add missing multiprocessing.popen_forkserver.pyi stubs #8425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 28, 2022
Merged

fix: add missing multiprocessing.popen_forkserver.pyi stubs #8425

merged 6 commits into from
Jul 28, 2022

Conversation

kkirsche
Copy link
Contributor

X-Ref: #6799

This adds best-effort types to multiprocessing.popen_fork to continue to address issue #6799

The source file can be viewed here:
https://github.com/python/cpython/blob/main/Lib/multiprocessing/popen_forkserver.py

Note that the forkserver version inherits from popen_fork, so _launch is called explicitly as was the case there. This only includes new or overriding attributes on the Popen class, ignoring attributes like pid which are identical with the parent. sentinel is defined here even though it matches popen_fork.Popen because it doesn't have the same condition as the comment in the other stub.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Contributor

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

@AlexWaygood AlexWaygood merged commit 1f0e641 into python:master Jul 28, 2022
@kkirsche kkirsche deleted the multiprocessing/popen-forkserver branch July 28, 2022 16:33
@kkirsche
Copy link
Contributor Author

Thanks :) two more to go and the module will be complete 👍

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