From cd4be9241eb79955880e868952a8ae1b56007ae1 Mon Sep 17 00:00:00 2001 From: Sydney Runkle Date: Fri, 27 Feb 2026 14:33:25 -0500 Subject: [PATCH] claude can't lint --- libs/langgraph/langgraph/pregel/main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/langgraph/langgraph/pregel/main.py b/libs/langgraph/langgraph/pregel/main.py index a5a3a7272..8e5f66be5 100644 --- a/libs/langgraph/langgraph/pregel/main.py +++ b/libs/langgraph/langgraph/pregel/main.py @@ -3105,7 +3105,10 @@ class Pregel( ): if stream_mode == "values": latest = chunk - if isinstance(chunk, dict) and (ints := chunk.get(INTERRUPT)) is not None: + if ( + isinstance(chunk, dict) + and (ints := chunk.get(INTERRUPT)) is not None + ): interrupts.extend(ints) else: chunks.append(chunk) @@ -3182,7 +3185,10 @@ class Pregel( ): if stream_mode == "values": latest = chunk - if isinstance(chunk, dict) and (ints := chunk.get(INTERRUPT)) is not None: + if ( + isinstance(chunk, dict) + and (ints := chunk.get(INTERRUPT)) is not None + ): interrupts.extend(ints) else: chunks.append(chunk)