From b13ffcb1224a16dbe2b29ce48424d8231555cd55 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Fri, 1 Aug 2025 22:24:20 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/langgraph/langgraph/graph/state.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/langgraph/langgraph/graph/state.py b/libs/langgraph/langgraph/graph/state.py index 16e1ab499..83a09f467 100644 --- a/libs/langgraph/langgraph/graph/state.py +++ b/libs/langgraph/langgraph/graph/state.py @@ -1394,7 +1394,7 @@ def _is_field_managed_value(name: str, typ: type[Any]) -> ManagedValueSpec | Non origin = get_origin(typ) if origin is not None: # Check if this is a NotRequired type (from typing_extensions) - if hasattr(origin, '__name__') and origin.__name__ == 'NotRequired': + if hasattr(origin, "__name__") and origin.__name__ == "NotRequired": # Extract the inner type from NotRequired[T] args = get_args(typ) if args: @@ -1440,4 +1440,3 @@ def _get_json_schema( if k in channels and isinstance(channels[k], BaseChannel) }, ).model_json_schema() -