mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-05 17:27:47 +02:00
py3.9 compat
This commit is contained in:
@@ -4,7 +4,7 @@ import time
|
||||
import warnings
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from contextlib import contextmanager
|
||||
from typing import Annotated, Generator, Optional, Self, TypedDict, Union
|
||||
from typing import Annotated, Generator, Optional, TypedDict, Union
|
||||
|
||||
import pytest
|
||||
from langchain_core.runnables import RunnablePassthrough
|
||||
@@ -983,7 +983,7 @@ def test_prebuilt_chat() -> None:
|
||||
from langchain_core.messages import AIMessage, FunctionMessage, HumanMessage
|
||||
|
||||
class FakeFuntionChatModel(FakeMessagesListChatModel):
|
||||
def bind_functions(self, functions: list) -> Self:
|
||||
def bind_functions(self, functions: list):
|
||||
return self
|
||||
|
||||
@tool()
|
||||
@@ -1129,7 +1129,7 @@ def test_message_graph() -> None:
|
||||
from langchain_core.messages import AIMessage, FunctionMessage, HumanMessage
|
||||
|
||||
class FakeFuntionChatModel(FakeMessagesListChatModel):
|
||||
def bind_functions(self, functions: list) -> Self:
|
||||
def bind_functions(self, functions: list):
|
||||
return self
|
||||
|
||||
@tool()
|
||||
|
||||
@@ -9,7 +9,6 @@ from typing import (
|
||||
AsyncIterator,
|
||||
Generator,
|
||||
Optional,
|
||||
Self,
|
||||
TypedDict,
|
||||
Union,
|
||||
)
|
||||
@@ -1030,7 +1029,7 @@ async def test_prebuilt_chat() -> None:
|
||||
from langchain_core.messages import AIMessage, FunctionMessage, HumanMessage
|
||||
|
||||
class FakeFuntionChatModel(FakeMessagesListChatModel):
|
||||
def bind_functions(self, functions: list) -> Self:
|
||||
def bind_functions(self, functions: list):
|
||||
return self
|
||||
|
||||
@tool()
|
||||
@@ -1179,7 +1178,7 @@ async def test_message_graph() -> None:
|
||||
from langchain_core.messages import AIMessage, FunctionMessage, HumanMessage
|
||||
|
||||
class FakeFuntionChatModel(FakeMessagesListChatModel):
|
||||
def bind_functions(self, functions: list) -> Self:
|
||||
def bind_functions(self, functions: list):
|
||||
return self
|
||||
|
||||
@tool()
|
||||
|
||||
Reference in New Issue
Block a user