fix type: ignore

pull/18936/head
crazywoola 1 year ago
parent 4b91ba422b
commit da65078356

@ -11,7 +11,7 @@ import docx
import pandas as pd import pandas as pd
import pypandoc # type: ignore import pypandoc # type: ignore
import pypdfium2 # type: ignore import pypdfium2 # type: ignore
import webvtt import webvtt # type: ignore
import yaml # type: ignore import yaml # type: ignore
from docx.document import Document from docx.document import Document
from docx.oxml.table import CT_Tbl from docx.oxml.table import CT_Tbl
@ -468,6 +468,7 @@ def _extract_text_from_msg(file_content: bytes) -> str:
except Exception as e: except Exception as e:
raise TextExtractionError(f"Failed to extract text from MSG: {str(e)}") from e raise TextExtractionError(f"Failed to extract text from MSG: {str(e)}") from e
def _extract_text_from_vtt(vtt_bytes: bytes) -> str: def _extract_text_from_vtt(vtt_bytes: bytes) -> str:
text = _extract_text_from_plain_text(vtt_bytes) text = _extract_text_from_plain_text(vtt_bytes)

Loading…
Cancel
Save