diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index 6bd98f739..edd74d76a 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -448,6 +448,7 @@ def call(args: _CMD, restore_signals: bool = ..., start_new_session: bool = ..., pass_fds: Any = ..., + *, timeout: Optional[float] = ...) -> int: ... # Same args as Popen.__init__ @@ -751,9 +752,9 @@ else: restore_signals: bool = ..., start_new_session: bool = ..., pass_fds: Any = ..., - timeout: Optional[float] = ..., input: _TXT = ..., *, + timeout: Optional[float] = ..., universal_newlines: Literal[True], ) -> str: ... @overload @@ -773,8 +774,9 @@ else: restore_signals: bool = ..., start_new_session: bool = ..., pass_fds: Any = ..., - timeout: Optional[float] = ..., input: _TXT = ..., + *, + timeout: Optional[float] = ..., ) -> bytes: ... @overload def check_output(args: _CMD, @@ -793,8 +795,9 @@ else: restore_signals: bool = ..., start_new_session: bool = ..., pass_fds: Any = ..., - timeout: Optional[float] = ..., input: _TXT = ..., + *, + timeout: Optional[float] = ..., ) -> Any: ... # morally: -> _TXT @@ -837,6 +840,7 @@ class Popen(Generic[AnyStr]): stderr: Optional[IO[AnyStr]] pid: int returncode: int + universal_newlines: bool # Technically it is wrong that Popen provides __new__ instead of __init__ # but this shouldn't come up hopefully? @@ -1166,7 +1170,7 @@ class Popen(Generic[AnyStr]): timeout: Optional[float] = ..., # morally this should be optional ) -> Tuple[AnyStr, AnyStr]: ... - def send_signal(self, signal: int) -> None: ... + def send_signal(self, sig: int) -> None: ... def terminate(self) -> None: ... def kill(self) -> None: ... def __enter__(self: _S) -> _S: ... diff --git a/tests/stubtest_whitelists/py35.txt b/tests/stubtest_whitelists/py35.txt index fb106969d..32f4e4121 100644 --- a/tests/stubtest_whitelists/py35.txt +++ b/tests/stubtest_whitelists/py35.txt @@ -49,7 +49,6 @@ smtpd.SMTPChannel.__init__ smtpd.SMTPServer.__init__ socket.NETLINK_CRYPTO sre_compile.dis -subprocess.check_output tracemalloc.Filter.__init__ typing.AbstractSet.isdisjoint typing.Coroutine.cr_await diff --git a/tests/stubtest_whitelists/py3_common.txt b/tests/stubtest_whitelists/py3_common.txt index dd78a157f..401cb1566 100644 --- a/tests/stubtest_whitelists/py3_common.txt +++ b/tests/stubtest_whitelists/py3_common.txt @@ -436,8 +436,6 @@ ssl.SSLSocket.recvfrom ssl.SSLSocket.recvfrom_into ssl.SSLSocket.sendto ssl._ASN1Object.__new__ -subprocess.Popen.send_signal -subprocess.call sunau.Au_write.getmark sunau.Au_write.getmarkers sunau.Au_write.setcomptype