Skip to content

Commit

Permalink
fix type and default
Browse files Browse the repository at this point in the history
  • Loading branch information
Coniferish committed Jan 18, 2025
1 parent e2d82e5 commit 5fc2f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unstructured/partition/pdf_image/pdfminer_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import tempfile
from typing import BinaryIO, List, Tuple, Optional
from typing import BinaryIO, List, Tuple

from pdfminer.converter import PDFPageAggregator
from pdfminer.layout import LAParams, LTContainer, LTImage, LTItem, LTTextLine
Expand Down Expand Up @@ -73,7 +73,7 @@ def rect_to_bbox(
@requires_dependencies(["pikepdf", "pypdf"])
def open_pdfminer_pages_generator(
fp: BinaryIO,
password:Optional[str]=None,
password: str = "",
):
"""Open PDF pages using PDFMiner, handling and repairing invalid dictionary constructs."""

Expand Down

0 comments on commit 5fc2f7e

Please sign in to comment.