(file_path: Path)
| 76 | |
| 77 | class JSONLReader(Reader): |
| 78 | def parse_file(file_path: Path) -> list: |
| 79 | logger.info(f"Reading JSON Lines file from {file_path}.") |
| 80 | with open(file_path, "r",encoding='utf-8') as f: |
| 81 | lines = [json.loads(line) for line in f] |
| 82 | |
| 83 | return lines |
| 84 | |
| 85 | def parse(file_path: Path) -> str: |
| 86 | logger.info(f"Reading JSON Lines file from {file_path}.") |
nothing calls this directly
no outgoing calls
no test coverage detected