(self, file: TextIO)
| 48 | class StreamingJSONWriter: |
| 49 | """Writes JSON arrays to a file in a streaming fashion.""" |
| 50 | def __init__(self, file: TextIO): |
| 51 | self.file = file |
| 52 | self.is_first = True |
| 53 | self.file.write('[\n') |
| 54 | |
| 55 | def write_item(self, item: Dict): |
| 56 | """Write a single item to the JSON array.""" |
nothing calls this directly
no outgoing calls
no test coverage detected