Chore: clean some # type: ignore (#25157)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user