Chore: clean some # type: ignore (#25157)

This commit is contained in:
Yongtao Huang
2025-09-05 11:30:04 +08:00
committed by GitHub
parent f0561c0c3b
commit 432f89cf33
2 changed files with 12 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ class ParentChildIndexProcessor(BaseIndexProcessor):
if not process_rule.get("rules"):
raise ValueError("No rules found in process rule.")
rules = Rule(**process_rule.get("rules"))
all_documents = [] # type: ignore
all_documents: list[Document] = []
if rules.parent_mode == ParentMode.PARAGRAPH:
# Split the text documents into nodes.
if not rules.segmentation: