mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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:
parent
1533a68c06
commit
e20f88c143
@ -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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user