mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
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:
committed by
GitHub
parent
68d16d8a07
commit
dc19d42d37
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user