| 51 | |
| 52 | |
| 53 | class SafeOpenReader(Protocol): |
| 54 | def __enter__(self) -> "SafeOpenReader": ... |
| 55 | |
| 56 | def __exit__( |
| 57 | self, |
| 58 | exc_type: type[BaseException] | None, |
| 59 | exc_value: BaseException | None, |
| 60 | traceback: TracebackType | None, |
| 61 | ) -> bool | None: ... |
| 62 | |
| 63 | def keys(self) -> Iterable[str]: ... |
| 64 | |
| 65 | def get_tensor(self, key: str) -> torch.Tensor: ... |
| 66 | |
| 67 | |
| 68 | def _open_safe_reader(path: Path) -> SafeOpenReader: |
nothing calls this directly
no outgoing calls
no test coverage detected