Return list of all parent collectors up to self, starting from the root of collection tree.
(self)
| 325 | pass |
| 326 | |
| 327 | def listchain(self) -> List["Node"]: |
| 328 | """Return list of all parent collectors up to self, starting from |
| 329 | the root of collection tree.""" |
| 330 | chain = [] |
| 331 | item: Optional[Node] = self |
| 332 | while item is not None: |
| 333 | chain.append(item) |
| 334 | item = item.parent |
| 335 | chain.reverse() |
| 336 | return chain |
| 337 | |
| 338 | def add_marker( |
| 339 | self, marker: Union[str, MarkDecorator], append: bool = True |