fix type checker

This commit is contained in:
Lorenze Jay
2024-12-03 11:15:30 -08:00
parent 45d6f64f3e
commit 7e93285df1

View File

@@ -16,6 +16,7 @@ class PDFKnowledgeSource(BaseFileKnowledgeSource):
for path in paths:
text = ""
path = self.convert_to_path(path)
with pdfplumber.open(path) as pdf:
for page in pdf.pages:
page_text = page.extract_text()