mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-28 20:45:05 +02:00
Update ruff
This commit is contained in:
@@ -22,34 +22,26 @@ C = TypeVar("C")
|
||||
class ChannelProtocol(Protocol[Value, Update, C]):
|
||||
# Mirrors langgraph.channels.base.BaseChannel
|
||||
@property
|
||||
def ValueType(self) -> Any:
|
||||
...
|
||||
def ValueType(self) -> Any: ...
|
||||
|
||||
@property
|
||||
def UpdateType(self) -> Any:
|
||||
...
|
||||
def UpdateType(self) -> Any: ...
|
||||
|
||||
def checkpoint(self) -> Optional[C]:
|
||||
...
|
||||
def checkpoint(self) -> Optional[C]: ...
|
||||
|
||||
def from_checkpoint(
|
||||
self, checkpoint: Optional[C], config: RunnableConfig
|
||||
) -> Generator[Self, None, None]:
|
||||
...
|
||||
) -> Generator[Self, None, None]: ...
|
||||
|
||||
async def afrom_checkpoint(
|
||||
self, checkpoint: Optional[C], config: RunnableConfig
|
||||
) -> AsyncGenerator[Self, None]:
|
||||
...
|
||||
) -> AsyncGenerator[Self, None]: ...
|
||||
|
||||
def update(self, values: Sequence[Update]) -> bool:
|
||||
...
|
||||
def update(self, values: Sequence[Update]) -> bool: ...
|
||||
|
||||
def get(self) -> Value:
|
||||
...
|
||||
def get(self) -> Value: ...
|
||||
|
||||
def consume(self) -> bool:
|
||||
...
|
||||
def consume(self) -> bool: ...
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
@@ -59,11 +51,8 @@ class SendProtocol(Protocol):
|
||||
arg: Any
|
||||
id: str
|
||||
|
||||
def __hash__(self) -> int:
|
||||
...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
def __repr__(self) -> str:
|
||||
...
|
||||
def __repr__(self) -> str: ...
|
||||
|
||||
def __eq__(self, value: object) -> bool:
|
||||
...
|
||||
def __eq__(self, value: object) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user