mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
chore: Remove pyright in favor of pyrefly (#36154)
This commit is contained in:
1 parent
b9e3130388
commit
af4b9bfa8f
31 files changed
+87
-181
No files matched your search
@@ -19,7 +19,7 @@ class UnstructuredWordExtractor(BaseExtractor):
|
||||
|
||||
def extract(self) -> list[Document]:
|
||||
from unstructured.__version__ import __version__ as __unstructured_version__
|
||||
from unstructured.file_utils.filetype import ( # pyright: ignore[reportPrivateImportUsage]
|
||||
from unstructured.file_utils.filetype import (
|
||||
FileType,
|
||||
detect_filetype,
|
||||
)
|
||||
@@ -27,7 +27,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:
|
||||
|
||||
Reference in new issue
Block a user