-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
Also added DEVNULL which was added in 3.3
This is in response to #437 |
from typing import Sequence, Any, Mapping, Callable, Tuple, IO, Optional, Union, List | ||
|
||
|
||
if sys.version_info >= 3.5: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(3, 5)
There was a problem hiding this comment.
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]): ... |
There was a problem hiding this comment.
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 When should this be available for use in mypy? I don't know how this repository is released and such. |
I'm told they update their typeshed submodule once a week or so. So pretty soon I guess? |
Yeah, watch for a commit to the mypy repo saying "Sync typeshed."
…--Guido (mobile)
|
Also added DEVNULL which was added in 3.3