Skip to content

Updating subprocess.pyi to support python 3.5 #438

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 3 commits into from
Aug 5, 2016

Conversation

wreed4
Copy link
Contributor

@wreed4 wreed4 commented Aug 4, 2016

Also added DEVNULL which was added in 3.3

Also added DEVNULL which was added in 3.3
@wreed4
Copy link
Contributor Author

wreed4 commented Aug 4, 2016

This is in response to #437

from typing import Sequence, Any, Mapping, Callable, Tuple, IO, Optional, Union, List


if sys.version_info >= 3.5:
Copy link
Contributor

Choose a reason for hiding this comment

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

(3, 5)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops. thanks

def __init__(self, args: Union[List, str],
returncode: int,
stdout: Union[str, bytes],
stderr: Union[str, bytes]): ...
Copy link
Contributor

Choose a reason for hiding this comment

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

-> None

Forgot that __init__ should return None and also forgot "self" on a method. Like a dummy.
@matthiaskramm matthiaskramm merged commit 382cb5f into python:master Aug 5, 2016
@wreed4
Copy link
Contributor Author

wreed4 commented Aug 5, 2016

@matthiaskramm When should this be available for use in mypy? I don't know how this repository is released and such.

@wreed4 wreed4 deleted the patch-2 branch August 5, 2016 14:04
@matthiaskramm
Copy link
Contributor

I'm told they update their typeshed submodule once a week or so. So pretty soon I guess?

@gvanrossum
Copy link
Member

gvanrossum commented Aug 5, 2016 via email

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