Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
refactor: add type hints to vlm/vlm_analyze.py
jinzhenj81c51248c558
diff --git a/mineru/backend/vlm/vlm_analyze.py b/mineru/backend/vlm/vlm_analyze.pyindex c5a0d711..3b33f266 100644--- a/mineru/backend/vlm/vlm_analyze.py+++ b/mineru/backend/vlm/vlm_analyze.py@@ -284,7 +284,7 @@ def _iter_shutdown_candidates(predictor: MinerUClient) -> list:seen_ids = set()- def _yield_candidate(candidate):+ def _yield_candidate(candidate: Any) -> Iterator[Any]:if candidate is None:returncandidate_id = id(candidate)