MCPcopy Create free account
hub / github.com/scanny/python-pptx / _is_pptx_package

Function _is_pptx_package

src/pptx/api.py:46–49  ·  view source on GitHub ↗

Return |True| if *prs_part* is a valid main document part, |False| otherwise.

(prs_part: PresentationPart)

Source from the content-addressed store, hash-verified

44
45
46def _is_pptx_package(prs_part: PresentationPart):
47 """Return |True| if *prs_part* is a valid main document part, |False| otherwise."""
48 valid_content_types = (CT.PML_PRESENTATION_MAIN, CT.PML_PRES_MACRO_MAIN)
49 return prs_part.content_type in valid_content_types

Callers 1

PresentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…