Skip to content

Make the type of timeout Optional[float] everywhere in subprocess. #3241

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 1 commit into from
Sep 18, 2019

Conversation

rchen152
Copy link
Collaborator

In https://docs.python.org/3/library/subprocess.html, the default value
of timeout is always None, so its type should be Optional[float], not
float. The one exception is that I left the type as float in
TimeoutExpired because (I assume) a timeout of None does not expire.

In https://docs.python.org/3/library/subprocess.html, the default value
of `timeout` is always None, so its type should be Optional[float], not
float. The one exception is that I left the type as float in
TimeoutExpired because (I assume) a timeout of None does not expire.
@srittau srittau merged commit 0602840 into master Sep 18, 2019
@rchen152 rchen152 deleted the timeout branch September 18, 2019 16:10
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