[Chore/Refactor] use __all__ to specify export member. (#25681)

This commit is contained in:
Ritoban Dutta
2025-09-15 07:15:35 +05:30
committed by GitHub
parent a3f2c05632
commit 67a686cf98
6 changed files with 192 additions and 80 deletions

View File

@@ -23,7 +23,7 @@ class UnstructuredWordExtractor(BaseExtractor):
unstructured_version = tuple(int(x) for x in __unstructured_version__.split("."))
# check the file extension
try:
import magic # noqa: F401 # pyright: ignore[reportUnusedImport]
import magic # noqa: F401
is_doc = detect_filetype(self._file_path) == FileType.DOC
except ImportError: