From 9fd64cd37b7e4d1e1d1802f3f70d05e9f9d92b97 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Fri, 30 Aug 2024 10:19:20 -0700 Subject: [PATCH] Lint --- libs/langgraph/langgraph/pregel/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langgraph/langgraph/pregel/io.py b/libs/langgraph/langgraph/pregel/io.py index a6e419592..8568e8781 100644 --- a/libs/langgraph/langgraph/pregel/io.py +++ b/libs/langgraph/langgraph/pregel/io.py @@ -1,4 +1,4 @@ -from typing import Any, Iterator, Mapping, Optional, Sequence, TypeVar, Union +from typing import Any, Iterator, Literal, Mapping, Optional, Sequence, TypeVar, Union from langchain_core.runnables.utils import AddableDict @@ -73,7 +73,7 @@ class AddableValuesDict(AddableDict): def map_output_values( output_channels: Union[str, Sequence[str]], - pending_writes: Union[True, Sequence[tuple[str, Any]]], + pending_writes: Union[Literal[True], Sequence[tuple[str, Any]]], channels: Mapping[str, BaseChannel], ) -> Iterator[Union[dict[str, Any], Any]]: """Map pending writes (a sequence of tuples (channel, value)) to output chunk."""