(self, dotted: bool = False)
| 446 | return sorted(keys, key=lambda x: str(x)) |
| 447 | |
| 448 | def items(self, dotted: bool = False): |
| 449 | if not dotted: |
| 450 | return super().items() |
| 451 | |
| 452 | if not self._box_config["box_dots"]: |
| 453 | raise BoxError("Cannot return dotted keys as this Box does not have `box_dots` enabled") |
| 454 | |
| 455 | return [(k, self[k]) for k in self.keys(dotted=True)] |
| 456 | |
| 457 | def get(self, key, default=NO_DEFAULT): |
| 458 | if key not in self: |