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 pipeline/batch_analyze.py

jinzhenj954922f922d1
diff --git a/mineru/backend/pipeline/batch_analyze.py b/mineru/backend/pipeline/batch_analyze.py
index 78f3f1a0..be8f9808 100644
--- a/mineru/backend/pipeline/batch_analyze.py
+++ b/mineru/backend/pipeline/batch_analyze.py
@@ -248,7 +248,7 @@ class BatchAnalyze:
ocr_result[:] = sorted_result
@staticmethod
- def _normalize_table_ocr_rec_text(text):
+ def _normalize_table_ocr_rec_text(text: str) -> str:
"""规范化表格 OCR rec 的已知误识别,避免后续表格模型消费错误文本。"""
if not isinstance(text, str):
return text