Skip to content

Commit

Permalink
subprocess: add endtime for py36 and below (#3641)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored and srittau committed Jan 23, 2020
1 parent 295c202 commit b732342
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stdlib/3/subprocess.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,10 @@ class Popen(Generic[AnyStr]):
pass_fds: Any = ...) -> Popen[Any]: ...

def poll(self) -> int: ...
def wait(self, timeout: Optional[float] = ...) -> int: ...
if sys.version_info >= (3, 7):
def wait(self, timeout: Optional[float] = ...) -> int: ...
else:
def wait(self, timeout: Optional[float] = ..., endtime: Optional[float] = ...) -> int: ...
# Return str/bytes
def communicate(self,
input: Optional[AnyStr] = ...,
Expand Down

0 comments on commit b732342

Please sign in to comment.