pydantic-graph 1.6.0__py3-none-any.whl → 1.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ the graph-based workflow system.
7
7
 
8
8
  from __future__ import annotations as _annotations
9
9
 
10
+ import sys
10
11
  import uuid
11
12
  from collections.abc import AsyncGenerator, AsyncIterable, AsyncIterator, Iterable, Sequence
12
13
  from contextlib import AbstractContextManager, ExitStack, asynccontextmanager, contextmanager
@@ -18,7 +19,6 @@ from anyio.abc import TaskGroup
18
19
  from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
19
20
  from typing_extensions import TypeVar, assert_never
20
21
 
21
- from pydantic_ai.exceptions import ExceptionGroup
22
22
  from pydantic_graph import exceptions
23
23
  from pydantic_graph._utils import AbstractSpan, get_traceparent, infer_obj_name, logfire_span
24
24
  from pydantic_graph.beta.decision import Decision
@@ -43,6 +43,11 @@ from pydantic_graph.beta.step import NodeStep, Step, StepContext, StepNode
43
43
  from pydantic_graph.beta.util import unpack_type_expression
44
44
  from pydantic_graph.nodes import BaseNode, End
45
45
 
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
+
46
51
  if TYPE_CHECKING:
47
52
  from pydantic_graph.beta.mermaid import StateDiagramDirection
48
53
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-graph
3
- Version: 1.6.0
3
+ Version: 1.7.0
4
4
  Summary: Graph and state machine library
5
5
  Project-URL: Homepage, https://ai.pydantic.dev/graph/tree/main/pydantic_graph
6
6
  Project-URL: Source, https://github.com/pydantic/pydantic-ai
@@ -7,7 +7,7 @@ pydantic_graph/nodes.py,sha256=CkY3lrC6jqZtzwhSRjFzmM69TdFFFrr58XSDU4THKHA,7450
7
7
  pydantic_graph/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  pydantic_graph/beta/__init__.py,sha256=VVmbEFaCSXYHwXqS4pANg4B3cn_c86tT62tW_EXcuyw,751
9
9
  pydantic_graph/beta/decision.py,sha256=x-Ta549b-j5hyBPUWFdwRQDRaJqnBHF1pfBP9L8I3vI,11239
10
- pydantic_graph/beta/graph.py,sha256=Zk3xQ8B2Ly81I5rqrQiIYEtZTn0bKyv3PBmr1vtlHkg,37533
10
+ pydantic_graph/beta/graph.py,sha256=X3eEniWjdFNjDn4tGGsmjFBBawg7FAoWOXS6P3vh4-8,37680
11
11
  pydantic_graph/beta/graph_builder.py,sha256=jvMwL-r2l5qT9_YbVM7N-m3Mv5wEGm_5AOTkfFLxxvw,41753
12
12
  pydantic_graph/beta/id_types.py,sha256=mIhS3HYvmTWWfkGZmt5UEyedn5Ave424FyzUalP9nsU,2915
13
13
  pydantic_graph/beta/join.py,sha256=rzCumDX_YgaU_a5bisfbjbbOuI3IwSZsCZs9TC0T9E4,8002
@@ -22,7 +22,7 @@ pydantic_graph/persistence/__init__.py,sha256=NLBGvUWhem23EdMHHxtX0XgTS2vyixmuWt
22
22
  pydantic_graph/persistence/_utils.py,sha256=6ySxCc1lFz7bbLUwDLkoZWNqi8VNLBVU4xxJbKI23fQ,2264
23
23
  pydantic_graph/persistence/file.py,sha256=XZy295cGc86HfUl_KuB-e7cECZW3bubiEdyJMVQ1OD0,6906
24
24
  pydantic_graph/persistence/in_mem.py,sha256=MmahaVpdzmDB30Dm3ZfSCZBqgmx6vH4HXdBaWwVF0K0,6799
25
- pydantic_graph-1.6.0.dist-info/METADATA,sha256=HLZnJ0kYansJu0Phbf1fg-waxYtcuPEphSHFvxJlQKU,3894
26
- pydantic_graph-1.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- pydantic_graph-1.6.0.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
28
- pydantic_graph-1.6.0.dist-info/RECORD,,
25
+ pydantic_graph-1.7.0.dist-info/METADATA,sha256=1UBWmucJbE3sWLCStE6FTr4Gpt_GNpmZrb1Dmu2960k,3894
26
+ pydantic_graph-1.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ pydantic_graph-1.7.0.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
28
+ pydantic_graph-1.7.0.dist-info/RECORD,,