Get the next node in the sequence of siblings. Returns `None` if this is the last sibling.
(self: _NodeType)
| 166 | |
| 167 | @property |
| 168 | def next_sibling(self: _NodeType) -> _NodeType | None: |
| 169 | """Get the next node in the sequence of siblings. |
| 170 | |
| 171 | Returns `None` if this is the last sibling. |
| 172 | """ |
| 173 | self_index = self.siblings.index(self) |
| 174 | if self_index + 1 < len(self.siblings): |
| 175 | return self.siblings[self_index + 1] |
| 176 | return None |
| 177 | |
| 178 | @property |
| 179 | def previous_sibling(self: _NodeType) -> _NodeType | None: |
nothing calls this directly
no outgoing calls
no test coverage detected