From 9a1e8452a3ff30c9afb489b5966700e5efaddc02 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 29 Jan 2017 10:12:36 -0800 Subject: [PATCH] input argument to Process.communicate is Optional (#894) The code for this method starts as follows: ``` @coroutine def communicate(self, input=None): if input is not None: stdin = self._feed_stdin(input) ``` --- stdlib/3.4/asyncio/subprocess.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3.4/asyncio/subprocess.pyi b/stdlib/3.4/asyncio/subprocess.pyi index 2416f9235..b492506e1 100644 --- a/stdlib/3.4/asyncio/subprocess.pyi +++ b/stdlib/3.4/asyncio/subprocess.pyi @@ -3,7 +3,7 @@ from asyncio import protocols from asyncio import streams from asyncio import transports from asyncio.coroutines import coroutine -from typing import Any, AnyStr, Tuple, Union +from typing import Any, AnyStr, Optional, Tuple, Union __all__ = ... # type: str @@ -33,7 +33,7 @@ class Process: def terminate(self) -> None: ... def kill(self) -> None: ... @coroutine - def communicate(self, input: bytes = ...) -> Tuple[bytes, bytes]: ... + def communicate(self, input: Optional[bytes] = ...) -> Tuple[bytes, bytes]: ... @coroutine