Skip to content

Commit 91e71ce

Browse files
andifeclaude
andcommitted
Fix ruff format: collapse subprocess.run call to single line
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fceaf88 commit 91e71ce

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

backends/onnx2c/backend.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ def _build_binary(workdir, model, inputs_info, outputs_info):
151151
with open(model_path, "wb") as f:
152152
f.write(model.SerializeToString())
153153

154-
result = subprocess.run(
155-
["onnx2c", model_path], capture_output=True, timeout=120
156-
)
154+
result = subprocess.run(["onnx2c", model_path], capture_output=True, timeout=120)
157155
if result.returncode != 0:
158156
raise BackendIsNotSupposedToImplementIt(
159157
f"onnx2c failed: {result.stderr.decode()}"

0 commit comments

Comments
 (0)