Returns true iff this node is the left child of its parent.
(self)
| 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.""" |
| 442 | if self.parent is None: |
| 443 | return False |
| 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.""" |
no outgoing calls
no test coverage detected