From 71ab4d2aebbdc0dec4471338f0d29062ccb788b7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 19:01:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xonsh/procs/specs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xonsh/procs/specs.py b/xonsh/procs/specs.py index 4763786c3..c7c071dd3 100644 --- a/xonsh/procs/specs.py +++ b/xonsh/procs/specs.py @@ -896,7 +896,9 @@ def run_subproc(cmds, captured=False, envs=None): print(f"Trace run_subproc({repr(r)}):", file=sys.stderr) for i, s in enumerate(specs): pcls = s.cls.__module__ + "." + s.cls.__name__ - pcmd = [s.args[0].__name__] + s.args[1:] if callable(s.args[0]) else s.args + pcmd = ( + [s.args[0].__name__] + s.args[1:] if callable(s.args[0]) else s.args + ) p = { "cmd": pcmd, "cls": pcls,