From e4a1bf23768b5d074cb7e10d852c56a56b4450fb Mon Sep 17 00:00:00 2001 From: Luca Dorigo Date: Wed, 7 Feb 2024 13:15:31 +0100 Subject: [PATCH] Fix typing for _dict_getter --- langgraph/graph/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langgraph/graph/state.py b/langgraph/graph/state.py index 88c526e2f..b8f2c8a63 100644 --- a/langgraph/graph/state.py +++ b/langgraph/graph/state.py @@ -105,7 +105,7 @@ def _coerce_state(schema: Type[Any], input: dict[str, Any]) -> dict[str, Any]: return schema(**input) -def _dict_getter(allowed_keys: str, key: str, input: dict) -> Any: +def _dict_getter(allowed_keys: list[str], key: str, input: dict) -> Any: if input is not None: if not isinstance(input, dict) or any(key not in allowed_keys for key in input): raise InvalidUpdateError(