(self)
| 640 | |
| 641 | @property |
| 642 | def text(self) -> str: |
| 643 | if not hasattr(self, "_text"): |
| 644 | content = self.content |
| 645 | if not content: |
| 646 | self._text = "" |
| 647 | else: |
| 648 | decoder = TextDecoder(encoding=self.encoding or "utf-8") |
| 649 | self._text = "".join([decoder.decode(self.content), decoder.flush()]) |
| 650 | return self._text |
| 651 | |
| 652 | @property |
| 653 | def encoding(self) -> str | None: |
nothing calls this directly
no test coverage detected