From 008301cf020af1860008f8a8425b5f6ed22d54b0 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 1 Apr 2024 16:15:30 -0700 Subject: [PATCH] Lint --- langgraph/pregel/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/langgraph/pregel/types.py b/langgraph/pregel/types.py index 3dcad2b79..8ebe52e99 100644 --- a/langgraph/pregel/types.py +++ b/langgraph/pregel/types.py @@ -1,5 +1,5 @@ from collections import deque -from typing import Any, NamedTuple, Optional +from typing import Any, NamedTuple, Optional, Union from langchain_core.runnables import Runnable, RunnableConfig @@ -18,7 +18,7 @@ class PregelExecutableTask(NamedTuple): class StateSnapshot(NamedTuple): - values: dict[str, Any] | Any + values: Union[dict[str, Any], Any] """Current values of channels""" next: tuple[str] """Nodes to execute in the next step, if any"""