Update ruff

This commit is contained in:
Nuno Campos
2024-08-27 10:50:39 -07:00
parent 8c2fefcb28
commit 330c91f622
31 changed files with 237 additions and 240 deletions
@@ -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: ...