(
self, data: bytes, load_func: Callable[[IO[bytes]], Any]
)
| 240 | pass |
| 241 | |
| 242 | def _load_until_eof( |
| 243 | self, data: bytes, load_func: Callable[[IO[bytes]], Any] |
| 244 | ) -> list[Any]: |
| 245 | result: list[Any] = [] |
| 246 | with tempfile.TemporaryFile() as temp: |
| 247 | temp.write(data) |
| 248 | temp.seek(0) |
| 249 | while True: |
| 250 | try: |
| 251 | result.append(load_func(temp)) |
| 252 | except EOFError: |
| 253 | break |
| 254 | return result |
| 255 | |
| 256 | |
| 257 | class InstrumentedFeedSlot(FeedSlot): |
no test coverage detected