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

Method parts

src/docx/opc/package.py:140–142  ·  view source on GitHub ↗

Return a list containing a reference to each of the parts in this package.

(self)

Source from the content-addressed store, hash-verified

138
139 @property
140 def parts(self) -> list[Part]:
141 """Return a list containing a reference to each of the parts in this package."""
142 return list(self.iter_parts())
143
144 def relate_to(self, part: Part, reltype: str):
145 """Return rId key of new or existing relationship to `part`.

Callers

nothing calls this directly

Calls 1

iter_partsMethod · 0.95

Tested by

no test coverage detected