(self, dotted: bool = False)
| 557 | return sorted(keys, key=lambda x: str(x)) |
| 558 | |
| 559 | def items(self, dotted: bool = False): |
| 560 | if not dotted: |
| 561 | return super().items() |
| 562 | |
| 563 | if not self._box_config["box_dots"]: |
| 564 | raise BoxError("Cannot return dotted keys as this Box does not have `box_dots` enabled") |
| 565 | |
| 566 | return [(k, self[k]) for k in self.keys(dotted=True)] |
| 567 | |
| 568 | def get(self, key, default=NO_DEFAULT): |
| 569 | if key not in self: |