Skip to content

Commit 874be10

Browse files
committed
Merge pull request #889 from Vlad-Shcherbina/subprocess_cwd
Add `cwd` argument to Python 3 stubs for subprocess calls.
2 parents 0b7ee88 + 4486106 commit 874be10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stubs/3.2/subprocess.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ def call(args: Sequence[str], *, stdin: Any = None, stdout: Any = None,
1212
cwd: str = None) -> int: ...
1313
def check_call(args: Sequence[str], *, stdin: Any = None, stdout: Any = None,
1414
stderr: Any = None, shell: bool = False,
15-
env: Mapping[str, str] = None) -> int: ...
15+
env: Mapping[str, str] = None,
16+
cwd: str = None) -> int: ...
1617
# Return str/bytes
1718
def check_output(args: Sequence[str], *, stdin: Any = None, stderr: Any = None,
1819
shell: bool = False, universal_newlines: bool = False,
19-
env: Mapping[str, str] = None) -> Any: ...
20+
env: Mapping[str, str] = None,
21+
cwd: str = None) -> Any: ...
2022

2123
# TODO types
2224
PIPE = ... # type: Any

0 commit comments

Comments
 (0)