Skip to content

Commit 1077e09

Browse files
authored
Merge branch 'main' into dmontagu/add-experiment-metadata
2 parents 2a0bf33 + 0e1f0d5 commit 1077e09

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ jobs:
160160
- uses: astral-sh/setup-uv@v5
161161
with:
162162
enable-cache: true
163+
prune-cache: false
163164

164165
- uses: denoland/setup-deno@v2
165166
with:
@@ -174,7 +175,7 @@ jobs:
174175
uses: actions/cache@v4
175176
with:
176177
path: ~/.cache/huggingface
177-
key: hf-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
178+
key: hf-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
178179
restore-keys: |
179180
hf-${{ runner.os }}-
180181
@@ -207,6 +208,7 @@ jobs:
207208
- uses: astral-sh/setup-uv@v5
208209
with:
209210
enable-cache: true
211+
prune-cache: false
210212

211213
- uses: denoland/setup-deno@v2
212214
with:
@@ -220,7 +222,7 @@ jobs:
220222
uses: actions/cache@v4
221223
with:
222224
path: ~/.cache/huggingface
223-
key: hf-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
225+
key: hf-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
224226
restore-keys: |
225227
hf-${{ runner.os }}-
226228
@@ -256,12 +258,13 @@ jobs:
256258
- uses: astral-sh/setup-uv@v5
257259
with:
258260
enable-cache: true
261+
prune-cache: false
259262

260263
- name: cache HuggingFace models
261264
uses: actions/cache@v4
262265
with:
263266
path: ~/.cache/huggingface
264-
key: hf-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
267+
key: hf-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
265268
restore-keys: |
266269
hf-${{ runner.os }}-
267270

pydantic_graph/pydantic_graph/beta/graph.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from __future__ import annotations as _annotations
99

10+
import sys
1011
import uuid
1112
from collections.abc import AsyncGenerator, AsyncIterable, AsyncIterator, Iterable, Sequence
1213
from contextlib import AbstractContextManager, ExitStack, asynccontextmanager, contextmanager
@@ -18,7 +19,6 @@
1819
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
1920
from typing_extensions import TypeVar, assert_never
2021

21-
from pydantic_ai.exceptions import ExceptionGroup
2222
from pydantic_graph import exceptions
2323
from pydantic_graph._utils import AbstractSpan, get_traceparent, infer_obj_name, logfire_span
2424
from pydantic_graph.beta.decision import Decision
@@ -43,6 +43,11 @@
4343
from pydantic_graph.beta.util import unpack_type_expression
4444
from pydantic_graph.nodes import BaseNode, End
4545

46+
if sys.version_info < (3, 11):
47+
from exceptiongroup import ExceptionGroup as ExceptionGroup # pragma: lax no cover
48+
else:
49+
ExceptionGroup = ExceptionGroup # pragma: lax no cover
50+
4651
if TYPE_CHECKING:
4752
from pydantic_graph.beta.mermaid import StateDiagramDirection
4853

0 commit comments

Comments
 (0)