Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

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.py
index 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:
return
candidate_id = id(candidate)