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

Method rels

src/docx/opc/part.py:146–150  ·  view source on GitHub ↗

|Relationships| instance holding the relationships for this part.

(self)

Source from the content-addressed store, hash-verified

144
145 @lazyproperty
146 def rels(self):
147 """|Relationships| instance holding the relationships for this part."""
148 # -- prevent breakage in `python-docx-template` by retaining legacy `._rels` attribute --
149 self._rels = Relationships(self._partname.baseURI)
150 return self._rels
151
152 def target_ref(self, rId: str) -> str:
153 """Return URL contained in target ref of relationship identified by `rId`."""

Callers

nothing calls this directly

Calls 1

RelationshipsClass · 0.90

Tested by

no test coverage detected