From 6fe68fd12072f5019d9e460c6418f512cf9006a1 Mon Sep 17 00:00:00 2001 From: Antoine Reversat Date: Wed, 21 Jun 2017 13:28:16 -0700 Subject: [PATCH] [subprocess.run] Make timeout and input optional (#1426) --- stdlib/3/subprocess.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index d8e973e9d..75d19feae 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -27,8 +27,8 @@ if sys.version_info >= (3, 5): if sys.version_info >= (3, 6): # Nearly same args as Popen.__init__ except for timeout, input, and check def run(args: _CMD, - timeout: float = ..., - input: _TXT = ..., + timeout: Optional[float] = ..., + input: Optional[_TXT] = ..., check: bool = ..., bufsize: int = ..., executable: _TXT = ..., @@ -52,8 +52,8 @@ if sys.version_info >= (3, 5): else: # Nearly same args as Popen.__init__ except for timeout, input, and check def run(args: _CMD, - timeout: float = ..., - input: _TXT = ..., + timeout: Optional[float] = ..., + input: Optional[_TXT] = ..., check: bool = ..., bufsize: int = ..., executable: _TXT = ...,