lib.util.run_cmd(): Fix docstring

The docstring of run_cmd()'s signature documents a wrong return
value, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-04 08:58:46 +01:00
commit 8bc22a3a68

View file

@ -54,8 +54,9 @@ async def run_cmd(
- otherwise -> decode stdout/stderr using this encoding
Returns:
(stdout, stderr), each as a string/bytes or None
In PTY mode stderr is always None because PTY merges stdout/stderr.
(stdout, stderr, exit_status):
stdout: stderr each as a string/bytes or None
In PTY mode stderr is always None because PTY merges stdout/stderr.
"""
want_bytes = (output_encoding == "bytes")