subprocess: add endtime for py36 and below (#3641)

This commit is contained in:
Shantanu
2020-01-23 06:11:54 -08:00
committed by Sebastian Rittau
parent 295c20211d
commit b732342333

View File

@@ -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] = ...,