Skip to content

Commit

Permalink
reducing type specification to avoid import error
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed Jan 16, 2025
1 parent 310def3 commit 8e96deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/components/converters/pdfminer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

with LazyImport("Run 'pip install pdfminer.six'") as pdfminer_import:
from pdfminer.high_level import extract_pages
from pdfminer.layout import LAParams, LTPage, LTTextContainer
from pdfminer.layout import LAParams, LTTextContainer

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -99,7 +99,7 @@ def __init__( # pylint: disable=too-many-positional-arguments
self.store_full_path = store_full_path

@staticmethod
def _converter(lt_page_objs: Iterator[LTPage]) -> str:
def _converter(lt_page_objs: Iterator) -> str:
"""
Extracts text from PDF pages then converts the text into a single str
Expand Down

0 comments on commit 8e96deb

Please sign in to comment.