(self, dotted: bool = False)
| 566 | return sorted(keys, key=lambda x: str(x)) |
| 567 | |
| 568 | def items(self, dotted: bool = False): |
| 569 | if not dotted: |
| 570 | return super().items() |
| 571 | |
| 572 | if not self._box_config["box_dots"]: |
| 573 | raise BoxError("Cannot return dotted keys as this Box does not have `box_dots` enabled") |
| 574 | |
| 575 | return [(k, self[k]) for k in self.keys(dotted=True)] |
| 576 | |
| 577 | def get(self, key, default=NO_DEFAULT): |
| 578 | if key not in self: |