Skip to content

Commit 6bad702

Browse files
committed
fix: apply ruff formatting to direct.py
1 parent 6290441 commit 6bad702

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/nutrient_dws/api/direct.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def split_pdf(
320320
if output_paths and i < len(output_paths):
321321
save_file_output(result, output_paths[i])
322322
else:
323-
results.append(result) # type: ignore[arg-type]
323+
results.append(result)
324324

325325
return results if not output_paths else []
326326

@@ -453,10 +453,9 @@ def duplicate_pdf_pages(
453453
parts.append({"file": "file", "pages": {"start": page_index, "end": page_index}})
454454
else:
455455
# For positive indexes, create single-page range with exclusive end
456-
parts.append({
457-
"file": "file",
458-
"pages": {"start": page_index, "end": page_index + 1}
459-
})
456+
parts.append(
457+
{"file": "file", "pages": {"start": page_index, "end": page_index + 1}}
458+
)
460459

461460
# Build instructions for duplication
462461
instructions = {"parts": parts, "actions": []}

0 commit comments

Comments
 (0)