mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 13:33:37 +00:00
all: test 3.13 ci (#27197)
Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@ class UnstructuredPowerPointLoader(UnstructuredFileLoader):
|
||||
try:
|
||||
import magic # noqa: F401
|
||||
|
||||
is_ppt = detect_filetype(self.file_path) == FileType.PPT
|
||||
is_ppt = detect_filetype(self.file_path) == FileType.PPT # type: ignore[arg-type]
|
||||
except ImportError:
|
||||
_, extension = os.path.splitext(str(self.file_path))
|
||||
is_ppt = extension == ".ppt"
|
||||
@@ -57,8 +57,8 @@ class UnstructuredPowerPointLoader(UnstructuredFileLoader):
|
||||
if is_ppt:
|
||||
from unstructured.partition.ppt import partition_ppt
|
||||
|
||||
return partition_ppt(filename=self.file_path, **self.unstructured_kwargs)
|
||||
return partition_ppt(filename=self.file_path, **self.unstructured_kwargs) # type: ignore[arg-type]
|
||||
else:
|
||||
from unstructured.partition.pptx import partition_pptx
|
||||
|
||||
return partition_pptx(filename=self.file_path, **self.unstructured_kwargs)
|
||||
return partition_pptx(filename=self.file_path, **self.unstructured_kwargs) # type: ignore[arg-type]
|
||||
|
Reference in New Issue
Block a user