Transform the BoxList object into a toml string. :param filename: File to write toml object too :return: string of TOML (if no filename provided)
(self, filename: str | PathLike | None = None, **kwargs)
| 700 | if msgpack_available: |
| 701 | |
| 702 | def to_msgpack(self, filename: str | PathLike | None = None, **kwargs): |
| 703 | """ |
| 704 | Transform the BoxList object into a toml string. |
| 705 | |
| 706 | :param filename: File to write toml object too |
| 707 | :return: string of TOML (if no filename provided) |
| 708 | """ |
| 709 | return _to_msgpack(self.to_list(), filename=filename, **kwargs) |
| 710 | |
| 711 | @classmethod |
| 712 | def from_msgpack(cls, msgpack_bytes: bytes | None = None, filename: str | PathLike | None = None, **kwargs): |