Return int count of references in this part's XML to `rId`.
(self, rId: str)
| 426 | return self |
| 427 | |
| 428 | def _rel_ref_count(self, rId: str) -> int: |
| 429 | """Return int count of references in this part's XML to `rId`.""" |
| 430 | return len([r for r in cast("list[str]", self._element.xpath("//@r:id")) if r == rId]) |
| 431 | |
| 432 | |
| 433 | class PartFactory: |