| 13 | |
| 14 | |
| 15 | class NumpyArrayEncoder(json.JSONEncoder): |
| 16 | def default(self, obj): |
| 17 | if isinstance(obj, ndarray): |
| 18 | return obj.tolist() |
| 19 | return json.JSONEncoder.default(self, obj) |
| 20 | |
| 21 | |
| 22 | def dict_factory(cursor: Cursor, row: Any) -> dict[str, Any]: |
nothing calls this directly
no outgoing calls
no test coverage detected