From be3ffe80e1f1ba2854c1ead3bc9a1ff0d40f7109 Mon Sep 17 00:00:00 2001 From: Nishan Jain Date: Fri, 26 Jul 2024 14:59:57 +0530 Subject: [PATCH] solved linting error --- .../langchain_community/chains/pebblo_retrieval/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/langchain_community/chains/pebblo_retrieval/base.py b/libs/community/langchain_community/chains/pebblo_retrieval/base.py index 2dcb9bea584dd..73f55bf1c467f 100644 --- a/libs/community/langchain_community/chains/pebblo_retrieval/base.py +++ b/libs/community/langchain_community/chains/pebblo_retrieval/base.py @@ -8,7 +8,7 @@ import json import logging from http import HTTPStatus -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List, Optional, Tuple import requests # type: ignore from langchain.chains.base import Chain @@ -531,7 +531,7 @@ def _send_prompt(self, qa_payload: Qa) -> None: logger.warning("API key is missing for sending prompt to Pebblo cloud.") raise NameError("API key is missing for sending prompt to Pebblo cloud.") - def _check_prompt_validity(self, question: str) -> tuple[bool, Dict[str, Any]]: + def _check_prompt_validity(self, question: str) -> Tuple[bool, Dict[str, Any]]: """ Check the validity of the given prompt using a remote classification service.