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.
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/PKG-INFO +1 -1
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/graph.py +1 -1
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/graph_builder.py +3 -3
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/mermaid.py +1 -1
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/.gitignore +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/LICENSE +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/README.md +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/__init__.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/_utils.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/__init__.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/decision.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/id_types.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/join.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/node.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/node_types.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/parent_forks.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/paths.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/step.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/beta/util.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/exceptions.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/graph.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/mermaid.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/nodes.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/__init__.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/_utils.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/file.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/persistence/in_mem.py +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pydantic_graph/py.typed +0 -0
- {pydantic_graph-1.23.0 → pydantic_graph-1.27.0}/pyproject.toml +0 -0
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|