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:
Erick Friis
2024-10-25 12:56:58 -07:00
committed by GitHub
parent 06df15c9c0
commit 600b7bdd61
237 changed files with 3668 additions and 4656 deletions

View File

@@ -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]