pydantic-graph 1.23.0__tar.gz → 1.27.0__tar.gz

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.
Files changed (29) hide show
  1. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/PKG-INFO +1 -1
  2. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/graph.py +1 -1
  3. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/graph_builder.py +3 -3
  4. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/mermaid.py +1 -1
  5. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/.gitignore +0 -0
  6. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/LICENSE +0 -0
  7. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/README.md +0 -0
  8. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/__init__.py +0 -0
  9. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/_utils.py +0 -0
  10. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/__init__.py +0 -0
  11. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/decision.py +0 -0
  12. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/id_types.py +0 -0
  13. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/join.py +0 -0
  14. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/node.py +0 -0
  15. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/node_types.py +0 -0
  16. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/parent_forks.py +0 -0
  17. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/paths.py +0 -0
  18. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/step.py +0 -0
  19. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/util.py +0 -0
  20. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/exceptions.py +0 -0
  21. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/graph.py +0 -0
  22. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/mermaid.py +0 -0
  23. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/nodes.py +0 -0
  24. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/__init__.py +0 -0
  25. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/_utils.py +0 -0
  26. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/file.py +0 -0
  27. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/in_mem.py +0 -0
  28. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/py.typed +0 -0
  29. {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-graph
3
- Version: 1.23.0
3
+ Version: 1.27.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
@@ -562,7 +562,7 @@ class _GraphIterator(Generic[StateT, DepsT, OutputT]):
562
562
  self.iter_stream_sender, self.iter_stream_receiver = create_memory_object_stream[_GraphTaskResult]()
563
563
  self._next_node_run_id = 1
564
564
 
565
- async def iter_graph( # noqa C901
565
+ async def iter_graph( # noqa: C901
566
566
  self, first_task: GraphTask
567
567
  ) -> AsyncGenerator[EndMarker[OutputT] | Sequence[GraphTask], EndMarker[OutputT] | Sequence[GraphTask]]:
568
568
  async with self.iter_stream_sender:
@@ -318,7 +318,7 @@ class GraphBuilder(Generic[StateT, DepsT, GraphInputT, GraphOutputT]):
318
318
  preferred_parent_fork: Literal['farthest', 'closest'] = 'farthest',
319
319
  ) -> Join[StateT, DepsT, InputT, OutputT]:
320
320
  if initial_factory is UNSET:
321
- initial_factory = lambda: initial # pyright: ignore[reportAssignmentType] # noqa E731
321
+ initial_factory = lambda: initial # pyright: ignore[reportAssignmentType] # noqa: E731
322
322
 
323
323
  return Join[StateT, DepsT, InputT, OutputT](
324
324
  id=JoinID(NodeID(node_id or generate_placeholder_node_id(get_callable_name(reducer)))),
@@ -329,7 +329,7 @@ class GraphBuilder(Generic[StateT, DepsT, GraphInputT, GraphOutputT]):
329
329
  )
330
330
 
331
331
  # Edge building
332
- def add(self, *edges: EdgePath[StateT, DepsT]) -> None: # noqa C901
332
+ def add(self, *edges: EdgePath[StateT, DepsT]) -> None: # noqa: C901
333
333
  """Add one or more edge paths to the graph.
334
334
 
335
335
  This method processes edge paths and automatically creates any necessary
@@ -674,7 +674,7 @@ class GraphBuilder(Generic[StateT, DepsT, GraphInputT, GraphOutputT]):
674
674
  )
675
675
 
676
676
 
677
- def _validate_graph_structure( # noqa C901
677
+ def _validate_graph_structure( # noqa: C901
678
678
  nodes: dict[NodeID, AnyNode],
679
679
  edges_by_source: dict[NodeID, list[Path]],
680
680
  ) -> None:
@@ -49,7 +49,7 @@ class MermaidEdge:
49
49
  label: str | None
50
50
 
51
51
 
52
- def build_mermaid_graph( # noqa C901
52
+ def build_mermaid_graph( # noqa: C901
53
53
  graph_nodes: dict[NodeID, AnyNode], graph_edges_by_source: dict[NodeID, list[Path]]
54
54
  ) -> MermaidGraph:
55
55
  """Build a mermaid graph."""
File without changes