mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Add missing attributes: asyncio.subprocess.Process (#1154)
Add typehints for the following `asyncio.subprocess.Process` attributes: - `stdin`: `Optional[asyncio.streams.StreamWriter]` - `stdout`: `Optional[asyncio.streams.StreamReader]` - `stderr`: `Optional[asyncio.streams.StreamReader]` - `pid`: `int` Include stdin, stdout, and stderr also in SSP.
This commit is contained in:
committed by
Łukasz Langa
parent
20d9fcf858
commit
aaa83a7f12
@@ -13,6 +13,9 @@ DEVNULL = ... # type: int
|
||||
|
||||
class SubprocessStreamProtocol(streams.FlowControlMixin,
|
||||
protocols.SubprocessProtocol):
|
||||
stdin = ... # type: Optional[streams.StreamWriter]
|
||||
stdout = ... # type: Optional[streams.StreamReader]
|
||||
stderr = ... # type: Optional[streams.StreamReader]
|
||||
def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None: ...
|
||||
def connection_made(self, transport: transports.BaseTransport) -> None: ...
|
||||
def pipe_data_received(self, fd: int, data: AnyStr) -> None: ...
|
||||
@@ -21,6 +24,10 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
|
||||
|
||||
|
||||
class Process:
|
||||
stdin = ... # type: Optional[streams.StreamWriter]
|
||||
stdout = ... # type: Optional[streams.StreamReader]
|
||||
stderr = ... # type: Optional[streams.StreamReader]
|
||||
pid = ... # type: int
|
||||
def __init__(self,
|
||||
transport: transports.BaseTransport,
|
||||
protocol: protocols.BaseProtocol,
|
||||
|
||||
Reference in New Issue
Block a user