Coverage for domain / converters / reader_protocols.py: 100.00%

3 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-07 00:07 +0000

1"""PDF and EPUB reader protocols for dependency injection.""" 

2from typing import Protocol, Any 

3 

4 

5class _PDFReader(Protocol): 

6 """Protocol for PDF reader implementations.""" 

7 def open(self, path) -> Any: # pragma: no cover 

8 ... 

9 

10 

11class _EPubReader(Protocol): 

12 """Protocol for EPUB reader implementations.""" 

13 def open(self, path) -> Any: # pragma: no cover 

14 ...