Run ruff format (MR 2357)

This commit is contained in:
Oliver Smith 2024-07-16 00:25:26 +02:00
parent 36dd53f402
commit 7b451b25de
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -21,9 +21,7 @@ import pmb.helpers.run
called by core(). """
def flat_cmd(
cmds: Sequence[Sequence[PathString]], working_dir: Path | None = None, env: Env = {}
):
def flat_cmd(cmds: Sequence[Sequence[PathString]], working_dir: Path | None = None, env: Env = {}):
"""Convert a shell command passed as list into a flat shell string with proper escaping.
:param cmds: list of commands as list, e.g. ["echo", "string with spaces"]