Return new |EmbeddedPackagePart| subclass object. The returned part object contains `blob` and is added to `package`.
(cls, blob: bytes, package: Package)
| 49 | |
| 50 | @classmethod |
| 51 | def new(cls, blob: bytes, package: Package): |
| 52 | """Return new |EmbeddedPackagePart| subclass object. |
| 53 | |
| 54 | The returned part object contains `blob` and is added to `package`. |
| 55 | """ |
| 56 | return cls( |
| 57 | package.next_partname(cls.partname_template), |
| 58 | cls.content_type, |
| 59 | package, |
| 60 | blob, |
| 61 | ) |
| 62 | |
| 63 | |
| 64 | class EmbeddedDocxPart(EmbeddedPackagePart): |