mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 11:47:51 +02:00
chore: drop Python 3.9 (and syntax) (#6289)
* `strict=False` is the default, pyupgrade to min version 3.10 adds this to be explicit w/ behavior
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, Union
|
||||
from collections.abc import Callable
|
||||
|
||||
import pytest
|
||||
from pydantic import BaseModel
|
||||
@@ -38,9 +38,9 @@ class ResponseFormat(BaseModel):
|
||||
def test_react_agent_graph_structure(
|
||||
snapshot: SnapshotAssertion,
|
||||
tools: list[Callable],
|
||||
pre_model_hook: Union[Callable, None],
|
||||
post_model_hook: Union[Callable, None],
|
||||
response_format: Union[type[BaseModel], None],
|
||||
pre_model_hook: Callable | None,
|
||||
post_model_hook: Callable | None,
|
||||
response_format: type[BaseModel] | None,
|
||||
) -> None:
|
||||
agent = create_react_agent(
|
||||
model,
|
||||
|
||||
Reference in New Issue
Block a user