Return instance of `cls` loaded with parsed XML from `blob`.
(cls, partname: PackURI, content_type: str, package: Package, blob: bytes)
| 394 | |
| 395 | @classmethod |
| 396 | def load(cls, partname: PackURI, content_type: str, package: Package, blob: bytes): |
| 397 | """Return instance of `cls` loaded with parsed XML from `blob`.""" |
| 398 | return cls( |
| 399 | partname, content_type, package, element=cast("BaseOxmlElement", parse_xml(blob)) |
| 400 | ) |
| 401 | |
| 402 | @property |
| 403 | def blob(self) -> bytes: # pyright: ignore[reportIncompatibleMethodOverride] |
nothing calls this directly
no test coverage detected