Get the previous node in the sequence of siblings. Returns `None` if this is the first sibling.
(self: _NodeType)
| 177 | |
| 178 | @property |
| 179 | def previous_sibling(self: _NodeType) -> _NodeType | None: |
| 180 | """Get the previous node in the sequence of siblings. |
| 181 | |
| 182 | Returns `None` if this is the first sibling. |
| 183 | """ |
| 184 | self_index = self.siblings.index(self) |
| 185 | if self_index - 1 >= 0: |
| 186 | return self.siblings[self_index - 1] |
| 187 | return None |
| 188 | |
| 189 | def _add_child( |
| 190 | self, |
nothing calls this directly
no outgoing calls
no test coverage detected