diff --git a/libs/langgraph/langgraph/graph/state.py b/libs/langgraph/langgraph/graph/state.py index df38e07e2..f952282eb 100644 --- a/libs/langgraph/langgraph/graph/state.py +++ b/libs/langgraph/langgraph/graph/state.py @@ -171,7 +171,7 @@ class StateGraph(Graph): schema_name = getattr(schema, "__name__", "") raise ValueError( f"Invalid managed channels detected in {schema_name}: {names}." - " Managed channels are not permited in Input/Output schema." + " Managed channels are not permitted in Input/Output schema." ) self.schemas[schema] = {**channels, **managed} for key, channel in channels.items(): diff --git a/libs/langgraph/tests/test_state.py b/libs/langgraph/tests/test_state.py index 670a2c2e8..cb5720781 100644 --- a/libs/langgraph/tests/test_state.py +++ b/libs/langgraph/tests/test_state.py @@ -220,7 +220,7 @@ def test_raises_invalid_managed(): for _state, _inp, _outp in bad_input_examples: with pytest.raises( ValueError, - match="Invalid managed channels detected in BadInputState: some_input_channel. Managed channels are not permited in Input/Output schema.", + match="Invalid managed channels detected in BadInputState: some_input_channel. Managed channels are not permitted in Input/Output schema.", ): StateGraph(_state, input=_inp, output=_outp) bad_output_examples = [ @@ -232,6 +232,6 @@ def test_raises_invalid_managed(): for _state, _inp, _outp in bad_output_examples: with pytest.raises( ValueError, - match="Invalid managed channels detected in BadOutputState: some_output_channel. Managed channels are not permited in Input/Output schema.", + match="Invalid managed channels detected in BadOutputState: some_output_channel. Managed channels are not permitted in Input/Output schema.", ): StateGraph(_state, input=_inp, output=_outp)