mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
subprocess.(check_)call: add text argument new in 3.7 (#8070)
This commit is contained in:
@@ -407,49 +407,99 @@ else:
|
||||
) -> CompletedProcess[Any]: ...
|
||||
|
||||
# Same args as Popen.__init__
|
||||
def call(
|
||||
args: _CMD,
|
||||
bufsize: int = ...,
|
||||
executable: StrOrBytesPath | None = ...,
|
||||
stdin: _FILE = ...,
|
||||
stdout: _FILE = ...,
|
||||
stderr: _FILE = ...,
|
||||
preexec_fn: Callable[[], Any] | None = ...,
|
||||
close_fds: bool = ...,
|
||||
shell: bool = ...,
|
||||
cwd: StrOrBytesPath | None = ...,
|
||||
env: _ENV | None = ...,
|
||||
universal_newlines: bool = ...,
|
||||
startupinfo: Any = ...,
|
||||
creationflags: int = ...,
|
||||
restore_signals: bool = ...,
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...,
|
||||
*,
|
||||
timeout: float | None = ...,
|
||||
) -> int: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def call(
|
||||
args: _CMD,
|
||||
bufsize: int = ...,
|
||||
executable: StrOrBytesPath | None = ...,
|
||||
stdin: _FILE = ...,
|
||||
stdout: _FILE = ...,
|
||||
stderr: _FILE = ...,
|
||||
preexec_fn: Callable[[], Any] | None = ...,
|
||||
close_fds: bool = ...,
|
||||
shell: bool = ...,
|
||||
cwd: StrOrBytesPath | None = ...,
|
||||
env: _ENV | None = ...,
|
||||
universal_newlines: bool = ...,
|
||||
startupinfo: Any = ...,
|
||||
creationflags: int = ...,
|
||||
restore_signals: bool = ...,
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...,
|
||||
*,
|
||||
timeout: float | None = ...,
|
||||
text: bool | None = ...,
|
||||
) -> int: ...
|
||||
|
||||
else:
|
||||
def call(
|
||||
args: _CMD,
|
||||
bufsize: int = ...,
|
||||
executable: StrOrBytesPath | None = ...,
|
||||
stdin: _FILE = ...,
|
||||
stdout: _FILE = ...,
|
||||
stderr: _FILE = ...,
|
||||
preexec_fn: Callable[[], Any] | None = ...,
|
||||
close_fds: bool = ...,
|
||||
shell: bool = ...,
|
||||
cwd: StrOrBytesPath | None = ...,
|
||||
env: _ENV | None = ...,
|
||||
universal_newlines: bool = ...,
|
||||
startupinfo: Any = ...,
|
||||
creationflags: int = ...,
|
||||
restore_signals: bool = ...,
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...,
|
||||
*,
|
||||
timeout: float | None = ...,
|
||||
) -> int: ...
|
||||
|
||||
# Same args as Popen.__init__
|
||||
def check_call(
|
||||
args: _CMD,
|
||||
bufsize: int = ...,
|
||||
executable: StrOrBytesPath = ...,
|
||||
stdin: _FILE = ...,
|
||||
stdout: _FILE = ...,
|
||||
stderr: _FILE = ...,
|
||||
preexec_fn: Callable[[], Any] | None = ...,
|
||||
close_fds: bool = ...,
|
||||
shell: bool = ...,
|
||||
cwd: StrOrBytesPath | None = ...,
|
||||
env: _ENV | None = ...,
|
||||
universal_newlines: bool = ...,
|
||||
startupinfo: Any = ...,
|
||||
creationflags: int = ...,
|
||||
restore_signals: bool = ...,
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...,
|
||||
timeout: float | None = ...,
|
||||
) -> int: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def check_call(
|
||||
args: _CMD,
|
||||
bufsize: int = ...,
|
||||
executable: StrOrBytesPath = ...,
|
||||
stdin: _FILE = ...,
|
||||
stdout: _FILE = ...,
|
||||
stderr: _FILE = ...,
|
||||
preexec_fn: Callable[[], Any] | None = ...,
|
||||
close_fds: bool = ...,
|
||||
shell: bool = ...,
|
||||
cwd: StrOrBytesPath | None = ...,
|
||||
env: _ENV | None = ...,
|
||||
universal_newlines: bool = ...,
|
||||
startupinfo: Any = ...,
|
||||
creationflags: int = ...,
|
||||
restore_signals: bool = ...,
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...,
|
||||
timeout: float | None = ...,
|
||||
*,
|
||||
text: bool | None = ...,
|
||||
) -> int: ...
|
||||
|
||||
else:
|
||||
def check_call(
|
||||
args: _CMD,
|
||||
bufsize: int = ...,
|
||||
executable: StrOrBytesPath = ...,
|
||||
stdin: _FILE = ...,
|
||||
stdout: _FILE = ...,
|
||||
stderr: _FILE = ...,
|
||||
preexec_fn: Callable[[], Any] | None = ...,
|
||||
close_fds: bool = ...,
|
||||
shell: bool = ...,
|
||||
cwd: StrOrBytesPath | None = ...,
|
||||
env: _ENV | None = ...,
|
||||
universal_newlines: bool = ...,
|
||||
startupinfo: Any = ...,
|
||||
creationflags: int = ...,
|
||||
restore_signals: bool = ...,
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...,
|
||||
timeout: float | None = ...,
|
||||
) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
# 3.7 added text
|
||||
|
||||
Reference in New Issue
Block a user