Add type ignore for pptx import
This commit is contained in:
parent
66720409bd
commit
6d61b37c03
1 changed files with 3 additions and 3 deletions
|
|
@ -918,7 +918,7 @@ def create_app(args):
|
||||||
case ".pptx":
|
case ".pptx":
|
||||||
if not pm.is_installed("pptx"):
|
if not pm.is_installed("pptx"):
|
||||||
pm.install("pptx")
|
pm.install("pptx")
|
||||||
from pptx import Presentation
|
from pptx import Presentation # type: ignore
|
||||||
|
|
||||||
# PowerPoint handling
|
# PowerPoint handling
|
||||||
prs = Presentation(file_path)
|
prs = Presentation(file_path)
|
||||||
|
|
@ -1216,7 +1216,7 @@ def create_app(args):
|
||||||
case ".pptx":
|
case ".pptx":
|
||||||
if not pm.is_installed("pptx"):
|
if not pm.is_installed("pptx"):
|
||||||
pm.install("pptx")
|
pm.install("pptx")
|
||||||
from pptx import Presentation
|
from pptx import Presentation # type: ignore
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
# Read PPTX from memory
|
# Read PPTX from memory
|
||||||
|
|
@ -1320,7 +1320,7 @@ def create_app(args):
|
||||||
case ".pptx":
|
case ".pptx":
|
||||||
if not pm.is_installed("pptx"):
|
if not pm.is_installed("pptx"):
|
||||||
pm.install("pptx")
|
pm.install("pptx")
|
||||||
from pptx import Presentation
|
from pptx import Presentation # type: ignore
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
pptx_content = await file.read()
|
pptx_content = await file.read()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue