Skip to content

Commit

Permalink
solved linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8nishan committed Jul 26, 2024
1 parent 6c8be4e commit be3ffe8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit be3ffe8

Please sign in to comment.