Skip to content

Commit aaa83a7

Browse files
sdunsterambv
authored andcommitted
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.
1 parent 20d9fcf commit aaa83a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/3.4/asyncio/subprocess.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ DEVNULL = ... # type: int
1313

1414
class SubprocessStreamProtocol(streams.FlowControlMixin,
1515
protocols.SubprocessProtocol):
16+
stdin = ... # type: Optional[streams.StreamWriter]
17+
stdout = ... # type: Optional[streams.StreamReader]
18+
stderr = ... # type: Optional[streams.StreamReader]
1619
def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None: ...
1720
def connection_made(self, transport: transports.BaseTransport) -> None: ...
1821
def pipe_data_received(self, fd: int, data: AnyStr) -> None: ...
@@ -21,6 +24,10 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
2124

2225

2326
class Process:
27+
stdin = ... # type: Optional[streams.StreamWriter]
28+
stdout = ... # type: Optional[streams.StreamReader]
29+
stderr = ... # type: Optional[streams.StreamReader]
30+
pid = ... # type: int
2431
def __init__(self,
2532
transport: transports.BaseTransport,
2633
protocol: protocols.BaseProtocol,

0 commit comments

Comments
 (0)