mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
asyncio: add arguments to subprocess_shell (#3825)
This commit is contained in:
@@ -10,6 +10,11 @@ from asyncio.tasks import Task
|
||||
from asyncio.transports import BaseTransport
|
||||
from _types import FileDescriptorLike
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import Literal
|
||||
else:
|
||||
from typing_extensions import Literal
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
from contextvars import Context
|
||||
|
||||
@@ -178,8 +183,9 @@ class BaseEventLoop(AbstractEventLoop, metaclass=ABCMeta):
|
||||
async def connect_read_pipe(self, protocol_factory: _ProtocolFactory, pipe: Any) -> _TransProtPair: ...
|
||||
async def connect_write_pipe(self, protocol_factory: _ProtocolFactory, pipe: Any) -> _TransProtPair: ...
|
||||
async def subprocess_shell(self, protocol_factory: _ProtocolFactory, cmd: Union[bytes, str], *, stdin: Any = ...,
|
||||
stdout: Any = ..., stderr: Any = ...,
|
||||
**kwargs: Any) -> _TransProtPair: ...
|
||||
stdout: Any = ..., stderr: Any = ..., universal_newlines: Literal[False] = ...,
|
||||
shell: Literal[True] = ..., bufsize: Literal[0] = ..., encoding: None = ...,
|
||||
errors: None = ..., text: Literal[False, None] = ..., **kwargs: Any) -> _TransProtPair: ...
|
||||
async def subprocess_exec(self, protocol_factory: _ProtocolFactory, *args: Any, stdin: Any = ...,
|
||||
stdout: Any = ..., stderr: Any = ...,
|
||||
**kwargs: Any) -> _TransProtPair: ...
|
||||
|
||||
Reference in New Issue
Block a user