Returns a new _NodePathBuilder with the child segment appended.
(
self, node_name: str, run_id: str | None = None
)
| 78 | return _NodePathBuilder(self._segments[:-1]) |
| 79 | |
| 80 | def append( |
| 81 | self, node_name: str, run_id: str | None = None |
| 82 | ) -> _NodePathBuilder: |
| 83 | """Returns a new _NodePathBuilder with the child segment appended.""" |
| 84 | segment = node_name |
| 85 | if run_id: |
| 86 | segment = f'{node_name}@{run_id}' |
| 87 | return _NodePathBuilder(self._segments + [segment]) |
| 88 | |
| 89 | def is_descendant_of(self, ancestor: _NodePathBuilder) -> bool: # pylint: disable=protected-access |
| 90 | """Checks if this path is a descendant of the ancestor path.""" |
no test coverage detected