mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-10 21:26:01 +02:00
mypy (#2283)
This commit is contained in:
@@ -294,7 +294,7 @@ def extract_file_text(
|
|||||||
file_name: str | None,
|
file_name: str | None,
|
||||||
file: IO[Any],
|
file: IO[Any],
|
||||||
break_on_unprocessable: bool = True,
|
break_on_unprocessable: bool = True,
|
||||||
) -> tuple[str, dict]:
|
) -> str:
|
||||||
extension_to_function: dict[str, Callable[[IO[Any]], str]] = {
|
extension_to_function: dict[str, Callable[[IO[Any]], str]] = {
|
||||||
".pdf": pdf_to_text,
|
".pdf": pdf_to_text,
|
||||||
".docx": docx_to_text,
|
".docx": docx_to_text,
|
||||||
|
Reference in New Issue
Block a user