mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-26 06:28:33 +00:00
fix: DOCXToDocument converter - use forward reference to Paragraph (#8260)
* docx paragraph forward ref * fix
This commit is contained in:
parent
471f07c8fe
commit
aca8f09f7d
@ -137,7 +137,7 @@ class DOCXToDocument:
|
||||
|
||||
return {"documents": documents}
|
||||
|
||||
def _extract_paragraphs_with_page_breaks(self, paragraphs: List[Paragraph]) -> List[str]:
|
||||
def _extract_paragraphs_with_page_breaks(self, paragraphs: List["Paragraph"]) -> List[str]:
|
||||
"""
|
||||
Extracts paragraphs from a DOCX file, including page breaks.
|
||||
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Use a forward reference for the `Paragraph` class in the `DOCXToDocument` converter
|
||||
to prevent import errors.
|
||||
Loading…
x
Reference in New Issue
Block a user