Skip to content

Commit 6fe68fd

Browse files
crevetorJelleZijlstra
authored andcommitted
[subprocess.run] Make timeout and input optional (#1426)
1 parent 9238c73 commit 6fe68fd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

stdlib/3/subprocess.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ if sys.version_info >= (3, 5):
2727
if sys.version_info >= (3, 6):
2828
# Nearly same args as Popen.__init__ except for timeout, input, and check
2929
def run(args: _CMD,
30-
timeout: float = ...,
31-
input: _TXT = ...,
30+
timeout: Optional[float] = ...,
31+
input: Optional[_TXT] = ...,
3232
check: bool = ...,
3333
bufsize: int = ...,
3434
executable: _TXT = ...,
@@ -52,8 +52,8 @@ if sys.version_info >= (3, 5):
5252
else:
5353
# Nearly same args as Popen.__init__ except for timeout, input, and check
5454
def run(args: _CMD,
55-
timeout: float = ...,
56-
input: _TXT = ...,
55+
timeout: Optional[float] = ...,
56+
input: Optional[_TXT] = ...,
5757
check: bool = ...,
5858
bufsize: int = ...,
5959
executable: _TXT = ...,

0 commit comments

Comments
 (0)