From cc55adac46bf5d50a9341278a5922552f5854cd0 Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:50:53 -0700 Subject: [PATCH] icanspell --- libs/langgraph/langgraph/graph/state.py | 2 +- libs/langgraph/tests/test_state.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)