mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-23 08:02:23 +02:00
Merge pull request #88 from ldorigo/patch-1
Fix typing for _dict_getter
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user