(self, file: BytesIO, **kwargs: Any)
| 112 | |
| 113 | class JsonLinesItemExporter(BaseItemExporter): |
| 114 | def __init__(self, file: BytesIO, **kwargs: Any): |
| 115 | super().__init__(dont_fail=True, **kwargs) |
| 116 | self.file: BytesIO = file |
| 117 | self._kwargs.setdefault("ensure_ascii", not self.encoding) |
| 118 | self.encoder: JSONEncoder = ScrapyJSONEncoder(**self._kwargs) |
| 119 | |
| 120 | def export_item(self, item: Any) -> None: |
| 121 | itemdict = dict(self._get_serialized_fields(item)) |
nothing calls this directly
no test coverage detected