mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -38,15 +38,15 @@ class Process:
|
||||
def send_signal(self, signal: int) -> None: ...
|
||||
def terminate(self) -> None: ...
|
||||
def kill(self) -> None: ...
|
||||
async def communicate(self, input: bytes | bytearray | memoryview | None = ...) -> tuple[bytes, bytes]: ...
|
||||
async def communicate(self, input: bytes | bytearray | memoryview | None = None) -> tuple[bytes, bytes]: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
async def create_subprocess_shell(
|
||||
cmd: str | bytes,
|
||||
stdin: int | IO[Any] | None = ...,
|
||||
stdout: int | IO[Any] | None = ...,
|
||||
stderr: int | IO[Any] | None = ...,
|
||||
limit: int = ...,
|
||||
stdin: int | IO[Any] | None = None,
|
||||
stdout: int | IO[Any] | None = None,
|
||||
stderr: int | IO[Any] | None = None,
|
||||
limit: int = 65536,
|
||||
*,
|
||||
# These parameters are forced to these values by BaseEventLoop.subprocess_shell
|
||||
universal_newlines: Literal[False] = ...,
|
||||
@@ -76,10 +76,10 @@ if sys.version_info >= (3, 11):
|
||||
async def create_subprocess_exec(
|
||||
program: _ExecArg,
|
||||
*args: _ExecArg,
|
||||
stdin: int | IO[Any] | None = ...,
|
||||
stdout: int | IO[Any] | None = ...,
|
||||
stderr: int | IO[Any] | None = ...,
|
||||
limit: int = ...,
|
||||
stdin: int | IO[Any] | None = None,
|
||||
stdout: int | IO[Any] | None = None,
|
||||
stderr: int | IO[Any] | None = None,
|
||||
limit: int = 65536,
|
||||
# These parameters are forced to these values by BaseEventLoop.subprocess_shell
|
||||
universal_newlines: Literal[False] = ...,
|
||||
shell: Literal[True] = ...,
|
||||
|
||||
Reference in New Issue
Block a user