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

Method __getitem__

src/pptx/opc/serialized.py:123–127  ·  view source on GitHub ↗

Blob for part corresponding to `pack_uri`.

(self, pack_uri: PackURI)

Source from the content-addressed store, hash-verified

121 )
122
123 def __getitem__(self, pack_uri: PackURI) -> bytes:
124 """Blob for part corresponding to `pack_uri`."""
125 raise NotImplementedError( # pragma: no cover
126 f"`{type(self).__name__}` must implement `.__contains__()`"
127 )
128
129 @classmethod
130 def factory(cls, pkg_file: str | IO[bytes]) -> _PhysPkgReader:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected