pydantic-graph 1.47.0__tar.gz → 1.49.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.47.0 → pydantic_graph-1.49.0}/PKG-INFO +1 -1
  2. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/_utils.py +1 -1
  3. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/nodes.py +3 -2
  4. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/persistence/in_mem.py +1 -1
  5. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/.gitignore +0 -0
  6. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/LICENSE +0 -0
  7. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/README.md +0 -0
  8. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/__init__.py +0 -0
  9. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/__init__.py +0 -0
  10. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/decision.py +0 -0
  11. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/graph.py +0 -0
  12. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/graph_builder.py +0 -0
  13. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/id_types.py +0 -0
  14. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/join.py +0 -0
  15. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/mermaid.py +0 -0
  16. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/node.py +0 -0
  17. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/node_types.py +0 -0
  18. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/parent_forks.py +0 -0
  19. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/paths.py +0 -0
  20. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/step.py +0 -0
  21. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/beta/util.py +0 -0
  22. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/exceptions.py +0 -0
  23. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/graph.py +0 -0
  24. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/mermaid.py +0 -0
  25. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/persistence/__init__.py +0 -0
  26. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/persistence/_utils.py +0 -0
  27. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/persistence/file.py +0 -0
  28. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pydantic_graph/py.typed +0 -0
  29. {pydantic_graph-1.47.0 → pydantic_graph-1.49.0}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-graph
3
- Version: 1.47.0
3
+ Version: 1.49.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
@@ -144,7 +144,7 @@ async def run_in_executor(func: Callable[_P, _R], *args: _P.args, **kwargs: _P.k
144
144
 
145
145
  try:
146
146
  from logfire._internal.config import (
147
- LogfireNotConfiguredWarning, # pyright: ignore[reportAssignmentType,reportPrivateImportUsage]
147
+ LogfireNotConfiguredWarning, # pyright: ignore[reportAssignmentType]
148
148
  )
149
149
  except ImportError: # pragma: lax no cover
150
150
 
@@ -68,11 +68,12 @@ class BaseNode(ABC, Generic[StateT, DepsT, NodeRunEndT]):
68
68
  if snapshot_id := getattr(self, '__snapshot_id', None):
69
69
  return snapshot_id
70
70
  else:
71
- self.__dict__['__snapshot_id'] = snapshot_id = generate_snapshot_id(self.get_node_id())
71
+ snapshot_id = generate_snapshot_id(self.get_node_id())
72
+ object.__setattr__(self, '__snapshot_id', snapshot_id)
72
73
  return snapshot_id
73
74
 
74
75
  def set_snapshot_id(self, snapshot_id: str) -> None:
75
- self.__dict__['__snapshot_id'] = snapshot_id
76
+ object.__setattr__(self, '__snapshot_id', snapshot_id)
76
77
 
77
78
  @classmethod
78
79
  @cache
@@ -92,7 +92,7 @@ class FullStatePersistence(BaseStatePersistence[StateT, RunEndT]):
92
92
  Defaults to `True` so even if nodes or state are modified after the snapshot is taken,
93
93
  the persistence history will record the value at the time of the snapshot.
94
94
  """
95
- history: list[Snapshot[StateT, RunEndT]] = field(default_factory=list)
95
+ history: list[Snapshot[StateT, RunEndT]] = field(default_factory=list[Snapshot[StateT, RunEndT]])
96
96
  """List of snapshots taken during the graph run."""
97
97
  _snapshots_type_adapter: pydantic.TypeAdapter[list[Snapshot[StateT, RunEndT]]] | None = field(
98
98
  default=None, init=False, repr=False
File without changes