From 6d61b37c034c4c6e9230cbd735fb3cb89f02ec37 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 27 Jan 2025 16:07:03 +0800 Subject: [PATCH] Add type ignore for pptx import --- lightrag/api/lightrag_server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index 28aaad8b..e3c211ea 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -918,7 +918,7 @@ def create_app(args): case ".pptx": if not pm.is_installed("pptx"): pm.install("pptx") - from pptx import Presentation + from pptx import Presentation # type: ignore # PowerPoint handling prs = Presentation(file_path) @@ -1216,7 +1216,7 @@ def create_app(args): case ".pptx": if not pm.is_installed("pptx"): pm.install("pptx") - from pptx import Presentation + from pptx import Presentation # type: ignore from io import BytesIO # Read PPTX from memory @@ -1320,7 +1320,7 @@ def create_app(args): case ".pptx": if not pm.is_installed("pptx"): pm.install("pptx") - from pptx import Presentation + from pptx import Presentation # type: ignore from io import BytesIO pptx_content = await file.read()