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

Method __contains__

src/pptx/opc/serialized.py:32–34  ·  view source on GitHub ↗

Return True when part identified by `pack_uri` is present in package.

(self, pack_uri: object)

Source from the content-addressed store, hash-verified

30 self._pkg_file = pkg_file
31
32 def __contains__(self, pack_uri: object) -> bool:
33 """Return True when part identified by `pack_uri` is present in package."""
34 return pack_uri in self._blob_reader
35
36 def __getitem__(self, pack_uri: PackURI) -> bytes:
37 """Return bytes for part corresponding to `pack_uri`."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected