Method
__init__
(
self, partname: PackURI, content_type: str, package: Package, blob: bytes | None = None
)
Source from the content-addressed store, hash-verified
| 287 | """ |
| 288 | |
| 289 | def __init__( |
| 290 | self, partname: PackURI, content_type: str, package: Package, blob: bytes | None = None |
| 291 | ): |
| 292 | # --- XmlPart subtypes, don't store a blob (the original XML) --- |
| 293 | self._partname = partname |
| 294 | self._content_type = content_type |
| 295 | self._package = package |
| 296 | self._blob = blob |
| 297 | |
| 298 | @classmethod |
| 299 | def load(cls, partname: PackURI, content_type: str, package: Package, blob: bytes) -> Self: |
Tested by
no test coverage detected