mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
mypy (#2283)
This commit is contained in:
parent
f01027cfb7
commit
580848cf8c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user