Return the image part in this collection having a SHA1 hash matching `sha1`, or |None| if not found.
(self, sha1: str)
| 85 | return image_part |
| 86 | |
| 87 | def _get_by_sha1(self, sha1: str) -> ImagePart | None: |
| 88 | """Return the image part in this collection having a SHA1 hash matching `sha1`, |
| 89 | or |None| if not found.""" |
| 90 | for image_part in self._image_parts: |
| 91 | if image_part.sha1 == sha1: |
| 92 | return image_part |
| 93 | return None |
| 94 | |
| 95 | def _next_image_partname(self, ext: str) -> PackURI: |
| 96 | """The next available image partname, starting from ``/word/media/image1.{ext}`` |
no outgoing calls
no test coverage detected