mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-24 16:42:24 +02:00
Previously DeltaChannel.__init__ hardcoded typ=list and _is_field_channel patched item.typ/item.value after construction. This mirrors BinaryOperatorAggregate: - DeltaChannel(typ, operator, *, snapshot_frequency=None) — typ is now a required first argument; __init__ strips abstract/parameterized types to their concrete counterparts (same logic as BinaryOperatorAggregate) - _is_field_channel reconstructs the channel via its constructor instead of patching typ and value externally - copy() and from_checkpoint() use self.__class__(self.typ, self.operator, ...) — no post-construction attribute hacking needed - _empty() helper removed; self.typ() is always a concrete callable - All call sites updated: DeltaChannel(list, op), DeltaChannel(dict, op), etc. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>