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

Method __contains__

src/pptx/opc/serialized.py:178–180  ·  view source on GitHub ↗

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

(self, pack_uri: object)

Source from the content-addressed store, hash-verified

176 self._pkg_file = pkg_file
177
178 def __contains__(self, pack_uri: object) -> bool:
179 """Return True when part identified by `pack_uri` is present in zip archive."""
180 return pack_uri in self._blobs
181
182 def __getitem__(self, pack_uri: PackURI) -> bytes:
183 """Return bytes for part corresponding to `pack_uri`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected