core: Specify code when ignoring type issue (ruff PGH003) (#30675)

See https://docs.astral.sh/ruff/rules/blanket-type-ignore/
This commit is contained in:
Christophe Bornet
2025-04-11 04:23:52 +02:00
committed by GitHub
parent 68d16d8a07
commit dc19d42d37
58 changed files with 249 additions and 258 deletions

View File

@@ -190,7 +190,7 @@ class BaseRetriever(RunnableSerializable[RetrieverInput, RetrieverOutput], ABC):
async def _aget_relevant_documents(
self: Self, query: str
) -> list[Document]:
return await run_in_executor(None, self._get_relevant_documents, query) # type: ignore
return await run_in_executor(None, self._get_relevant_documents, query) # type: ignore[call-arg]
cls._aget_relevant_documents = _aget_relevant_documents # type: ignore[assignment]