Return part to which this package has a relationship of `reltype`. Raises |KeyError| if no such relationship is found and |ValueError| if more than one such relationship is found.
(self, reltype: str)
| 129 | return package |
| 130 | |
| 131 | def part_related_by(self, reltype: str) -> Part: |
| 132 | """Return part to which this package has a relationship of `reltype`. |
| 133 | |
| 134 | Raises |KeyError| if no such relationship is found and |ValueError| if more than |
| 135 | one such relationship is found. |
| 136 | """ |
| 137 | return self.rels.part_with_reltype(reltype) |
| 138 | |
| 139 | @property |
| 140 | def parts(self) -> list[Part]: |
no test coverage detected