(arxiv_id: str)
| 66 | |
| 67 | |
| 68 | def _fetch_metadata_sync(arxiv_id: str) -> arxiv.Result: |
| 69 | client = arxiv.Client() |
| 70 | search = arxiv.Search(id_list=[arxiv_id]) |
| 71 | results = list(client.results(search)) |
| 72 | if not results: |
| 73 | raise LookupError(f"arXiv id not found: {arxiv_id!r}") |
| 74 | return results[0] |
| 75 | |
| 76 | |
| 77 | async def fetch_arxiv(id_or_url: str) -> RawPaper: |
nothing calls this directly
no outgoing calls
no test coverage detected