From c0c5479722330fbc551858b101258eaa95b3bcd0 Mon Sep 17 00:00:00 2001 From: Sydney Runkle Date: Wed, 29 Apr 2026 13:42:46 -0400 Subject: [PATCH] fix(pregel): revert unnecessary default on increment channel param channel: None = None -> channel: None; all call sites pass None explicitly and the default was never needed. Restores the original signature. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- libs/langgraph/langgraph/pregel/_algo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/pregel/_algo.py b/libs/langgraph/langgraph/pregel/_algo.py index cddc0a8ca..d7157e239 100644 --- a/libs/langgraph/langgraph/pregel/_algo.py +++ b/libs/langgraph/langgraph/pregel/_algo.py @@ -210,7 +210,7 @@ def local_read( return values -def increment(current: int | None, channel: None = None) -> int: +def increment(current: int | None, channel: None) -> int: """Default channel versioning function, increments the current int version.""" return current + 1 if current is not None else 1