From 6c4034420ceb32fbfabf16d1f685dbacc6115906 Mon Sep 17 00:00:00 2001 From: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:24:49 -0400 Subject: [PATCH] fix(langgraph): remove `ABC` spec for `PregelProtocol` (#5485) --- libs/langgraph/langgraph/pregel/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langgraph/langgraph/pregel/protocol.py b/libs/langgraph/langgraph/pregel/protocol.py index dce0ef870..654c08fe1 100644 --- a/libs/langgraph/langgraph/pregel/protocol.py +++ b/libs/langgraph/langgraph/pregel/protocol.py @@ -1,6 +1,6 @@ from __future__ import annotations -from abc import ABC, abstractmethod +from abc import abstractmethod from collections.abc import AsyncIterator, Iterator, Sequence from typing import Any, Generic @@ -14,7 +14,7 @@ from langgraph.typing import InputT, OutputT, StateT # TODO: remove Runnable inheritance here! -class PregelProtocol(Runnable[InputT, Any], Generic[StateT, InputT, OutputT], ABC): +class PregelProtocol(Runnable[InputT, Any], Generic[StateT, InputT, OutputT]): @abstractmethod def with_config( self, config: RunnableConfig | None = None, **kwargs: Any