Skip to content

Add new arguments to subprocess.Popen#7798

Merged
Akuli merged 1 commit into
python:masterfrom
JelleZijlstra:subpro
May 7, 2022
Merged

Add new arguments to subprocess.Popen#7798
Akuli merged 1 commit into
python:masterfrom
JelleZijlstra:subpro

Conversation

@JelleZijlstra

Copy link
Copy Markdown
Member

Most recent one in python/cpython#23930. This makes me wish we
could have had type evaluation functions.

Most recent one in python/cpython#23930. This makes me wish we
could have had type evaluation functions.
@github-actions

github-actions Bot commented May 7, 2022

Copy link
Copy Markdown
Contributor

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

@Akuli Akuli changed the title Add new arguments to subprocess.Poopen Add new arguments to subprocess.Popen May 7, 2022
@hauntsaninja

Copy link
Copy Markdown
Collaborator

"subprocess.💩en", Jelle tell us how you really feel

@Akuli Akuli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed by diffing the overloads against each other.

Comment thread stdlib/subprocess.pyi
pipesize: int = ...,
) -> Popen[Any]: ...
elif sys.version_info >= (3, 9):
# user, group, extra_groups, umask were added in 3.9

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These shouldn't be available on windows, but we probably shouldn't change the stub to reflect that. It's already difficult enough to read. The same goes for process_group.

@Akuli Akuli merged commit 6b5068b into python:master May 7, 2022
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.

3 participants