Fix linting

This commit is contained in:
yangdx
2025-01-27 16:12:30 +08:00
parent 6d61b37c03
commit c8d384f15f
2 changed files with 4 additions and 4 deletions

View File

@@ -918,7 +918,7 @@ def create_app(args):
case ".pptx":
if not pm.is_installed("pptx"):
pm.install("pptx")
from pptx import Presentation # type: ignore
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 # type: ignore
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 # type: ignore
from pptx import Presentation # type: ignore
from io import BytesIO
pptx_content = await file.read()