mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
[subprocess.run] Make timeout and input optional (#1426)
This commit is contained in:
committed by
Jelle Zijlstra
parent
9238c737de
commit
6fe68fd120
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user