[Chore/Refactor] use __all__ to specify export member. (#25681)
This commit is contained in:
parent
a3f2c05632
commit
67a686cf98
6 changed files with 192 additions and 80 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue