From b732342333dbedeeb72aba81931cf4c7f3ea418b Mon Sep 17 00:00:00 2001 From: Shantanu Date: Thu, 23 Jan 2020 06:11:54 -0800 Subject: [PATCH] subprocess: add endtime for py36 and below (#3641) --- stdlib/3/subprocess.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index 2fd8b5ba724b..49928b396924 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -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] = ...,