MCPcopy Index your code
hub / github.com/python-openxml/python-docx / image_partname

Method image_partname

src/docx/package.py:103–104  ·  view source on GitHub ↗
(n: int)

Source from the content-addressed store, hash-verified

101 """
102
103 def image_partname(n: int) -> PackURI:
104 return PackURI("/word/media/image%d.%s" % (n, ext))
105
106 used_numbers = [image_part.partname.idx for image_part in self]
107 for n in range(1, len(self) + 1):

Callers

nothing calls this directly

Calls 1

PackURIClass · 0.90

Tested by

no test coverage detected