Returns true iff this node is the right child of its parent.
(self)
| 444 | return self.parent.left is self |
| 445 | |
| 446 | def is_right(self) -> bool: |
| 447 | """Returns true iff this node is the right child of its parent.""" |
| 448 | if self.parent is None: |
| 449 | return False |
| 450 | return self.parent.right is self |
| 451 | |
| 452 | def __bool__(self) -> bool: |
| 453 | return True |
no outgoing calls
no test coverage detected