mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 09:00:35 -04:00
refactor: replace bare dict with dict[str, Any] in rag extractors (#35068)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""Abstract interface for document loader implementations."""
|
||||
|
||||
import csv
|
||||
from typing import Any
|
||||
|
||||
import pandas as pd
|
||||
|
||||
@@ -23,7 +24,7 @@ class CSVExtractor(BaseExtractor):
|
||||
encoding: str | None = None,
|
||||
autodetect_encoding: bool = False,
|
||||
source_column: str | None = None,
|
||||
csv_args: dict | None = None,
|
||||
csv_args: dict[str, Any] | None = None,
|
||||
):
|
||||
"""Initialize with file path."""
|
||||
self._file_path = file_path
|
||||
|
||||
@@ -120,7 +120,7 @@ class WaterCrawlProvider:
|
||||
}
|
||||
|
||||
def _get_results(
|
||||
self, crawl_request_id: str, query_params: dict | None = None
|
||||
self, crawl_request_id: str, query_params: dict[str, Any] | None = None
|
||||
) -> Generator[WatercrawlDocumentData, None, None]:
|
||||
page = 0
|
||||
page_size = 100
|
||||
|
||||
Reference in New Issue
Block a user