This commit is contained in:
Yuhong Sun 2024-08-30 18:02:18 -07:00 committed by GitHub
parent f01027cfb7
commit 580848cf8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,7 +294,7 @@ def extract_file_text(
file_name: str | None,
file: IO[Any],
break_on_unprocessable: bool = True,
) -> tuple[str, dict]:
) -> str:
extension_to_function: dict[str, Callable[[IO[Any]], str]] = {
".pdf": pdf_to_text,
".docx": docx_to_text,