From 561aa3080ebd61b2095e624ecc941c4c6ed477d1 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Fri, 11 Oct 2024 14:27:51 -0700 Subject: [PATCH] Lint --- libs/langgraph/langgraph/pregel/loop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/pregel/loop.py b/libs/langgraph/langgraph/pregel/loop.py index 7b5b343af..f54c07047 100644 --- a/libs/langgraph/langgraph/pregel/loop.py +++ b/libs/langgraph/langgraph/pregel/loop.py @@ -592,7 +592,10 @@ def _suppress_interrupt( self.output = read_channels(self.channels, self.output_keys) if suppress: # suppress interrupt - self._emit("updates", lambda: iter([{INTERRUPT: exc_value.args[0]}])) + self._emit( + "updates", + lambda: iter([{INTERRUPT: cast(GraphInterrupt, exc_value).args[0]}]), + ) return True def _emit(