(self, x: object, level: int)
| 70 | return s |
| 71 | |
| 72 | def repr_instance(self, x: object, level: int) -> str: |
| 73 | try: |
| 74 | s = repr(x) |
| 75 | except (KeyboardInterrupt, SystemExit): |
| 76 | raise |
| 77 | except BaseException as exc: |
| 78 | s = _format_repr_exception(exc, x) |
| 79 | if self.maxsize is not None: |
| 80 | s = _ellipsize(s, self.maxsize) |
| 81 | |
| 82 | return s |
| 83 | |
| 84 | def repr_dict(self, x: dict[object, object], level: int) -> str: |
| 85 | """Represent a dict while preserving its insertion order. |
nothing calls this directly
no test coverage detected