mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 23:52:23 +02:00
old py
This commit is contained in:
@@ -180,7 +180,7 @@ def test_graph_validation() -> None:
|
||||
|
||||
def test_checkpoint_errors() -> None:
|
||||
class FaultyGetCheckpointer(MemorySaver):
|
||||
def get_tuple(self, config: RunnableConfig) -> CheckpointTuple | None:
|
||||
def get_tuple(self, config: RunnableConfig) -> Optional[CheckpointTuple]:
|
||||
raise ValueError("Faulty get_tuple")
|
||||
|
||||
class FaultyPutCheckpointer(MemorySaver):
|
||||
|
||||
@@ -61,7 +61,7 @@ from tests.memory_assert import (
|
||||
|
||||
async def test_checkpoint_errors() -> None:
|
||||
class FaultyGetCheckpointer(MemorySaver):
|
||||
async def aget_tuple(self, config: RunnableConfig) -> CheckpointTuple | None:
|
||||
async def aget_tuple(self, config: RunnableConfig) -> Optional[CheckpointTuple]:
|
||||
raise ValueError("Faulty get_tuple")
|
||||
|
||||
class FaultyPutCheckpointer(MemorySaver):
|
||||
|
||||
Reference in New Issue
Block a user