(self, o: object)
| 68 | # Our variant of JSONEncoderForHTML that also accounts for apostrophes |
| 69 | # See: https://github.com/simplejson/simplejson/blob/master/simplejson/encoder.py |
| 70 | def encode(self, o: object) -> str: |
| 71 | # Override JSONEncoder.encode because it has hacks for |
| 72 | # performance that make things more complicated. |
| 73 | chunks = self.iterencode(o, True) |
| 74 | return "".join(chunks) |
| 75 | |
| 76 | def iterencode(self, o: object, _one_shot: bool = False) -> Generator[str]: |
| 77 | chunks = super().iterencode(o, _one_shot) |
no test coverage detected