all: test 3.13 ci (#27197)

Co-authored-by: Bagatur <baskaryan@gmail.com>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
Erick Friis
2024-10-25 12:56:58 -07:00
committed by GitHub
parent 06df15c9c0
commit 600b7bdd61
237 changed files with 3668 additions and 4656 deletions

View File

@@ -10,12 +10,12 @@ from langchain_core.tools import BaseTool
from langchain_community.utilities.vertexai import get_client_info
if TYPE_CHECKING:
from google.cloud import texttospeech
from google.cloud import texttospeech # type: ignore[attr-defined]
def _import_google_cloud_texttospeech() -> Any:
try:
from google.cloud import texttospeech
from google.cloud import texttospeech # type: ignore[attr-defined]
except ImportError as e:
raise ImportError(
"Cannot import google.cloud.texttospeech, please install "
@@ -42,7 +42,7 @@ def _encoding_file_extension_map(encoding: texttospeech.AudioEncoding) -> Option
removal="1.0",
alternative_import="langchain_google_community.TextToSpeechTool",
)
class GoogleCloudTextToSpeechTool(BaseTool):
class GoogleCloudTextToSpeechTool(BaseTool): # type: ignore[override]
"""Tool that queries the Google Cloud Text to Speech API.
In order to set this up, follow instructions at: