Get the current node's sibling, or None if it doesn't exist.
(self)
| 429 | |
| 430 | @property |
| 431 | def sibling(self) -> RedBlackTree | None: |
| 432 | """Get the current node's sibling, or None if it doesn't exist.""" |
| 433 | if self.parent is None: |
| 434 | return None |
| 435 | elif self.parent.left is self: |
| 436 | return self.parent.right |
| 437 | else: |
| 438 | return self.parent.left |
| 439 | |
| 440 | def is_left(self) -> bool: |
| 441 | """Returns true iff this node is the left child of its parent.""" |
nothing calls this directly
no outgoing calls
no test coverage detected