Count all keys in this leaf and all following leaves
(self)
| 814 | return self # Leaf nodes return themselves |
| 815 | |
| 816 | def key_count(self) -> int: |
| 817 | """Count all keys in this leaf and all following leaves""" |
| 818 | return len(self) + (0 if self.next is None else self.next.key_count()) |
| 819 | |
| 820 | |
| 821 | class BranchNode(Node): |