From dc42279eb55fbb8ec5175d24c7b30fe7b502b6d1 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Tue, 16 Jul 2024 09:53:48 -0700 Subject: [PATCH] core[patch]: fix Typing.cast import (#24313) Fixes #24287 --- libs/core/langchain_core/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/core/langchain_core/tools.py b/libs/core/langchain_core/tools.py index f2469c9397..c8b831b82a 100644 --- a/libs/core/langchain_core/tools.py +++ b/libs/core/langchain_core/tools.py @@ -42,10 +42,11 @@ from typing import ( Tuple, Type, Union, + cast, get_type_hints, ) -from typing_extensions import Annotated, cast, get_args, get_origin +from typing_extensions import Annotated, get_args, get_origin from langchain_core._api import deprecated from langchain_core.callbacks import (