Use "Returns" consistently to avoid being treated as section (#14448)

Otherwise, by side effect, results in error D413 by recent pydocstyle.
This commit is contained in:
Ville Skyttä 2018-05-16 10:01:48 +02:00 committed by Fabian Affolter
parent 1533a68c06
commit e20f88c143

View File

@ -19,8 +19,7 @@ def mock_process_creator(error: bool = False) -> asyncio.coroutine:
def communicate() -> Tuple[bytes, bytes]: def communicate() -> Tuple[bytes, bytes]:
"""Mock a coroutine that runs a process when yielded. """Mock a coroutine that runs a process when yielded.
Returns: Returns a tuple of (stdout, stderr).
a tuple of (stdout, stderr).
""" """
return b"I am stdout", b"I am stderr" return b"I am stdout", b"I am stderr"