refactor: replace bare dict with dict[str, Any] in rag extractors (#35068)

This commit is contained in:
wdeveloper16
2026-04-13 16:05:21 +02:00
committed by GitHub
parent 08f3133414
commit 06b63d65d1
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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