Return the child node with the specified key. Only looks for the node within the immediate children of this node, not in other nodes of the tree.
(self, key: str, default: Self | None = None)
| 518 | pass |
| 519 | |
| 520 | def get(self, key: str, default: Self | None = None) -> Self | None: |
| 521 | """ |
| 522 | Return the child node with the specified key. |
| 523 | |
| 524 | Only looks for the node within the immediate children of this node, |
| 525 | not in other nodes of the tree. |
| 526 | """ |
| 527 | if key in self.children: |
| 528 | return self.children[key] |
| 529 | else: |
| 530 | return default |
| 531 | |
| 532 | # TODO `._walk` method to be called by both `_get_item` and `_set_item` |
| 533 |
no outgoing calls