Skip to content

Commit a86eb4c

Browse files
authored
docs(persistence): fix StateSnapshot formatting (#5928)
This PR fixes a minor formatting inconsistency in the StateSnapshot examples within persistence.md. Specifically, the next=('node_b',) value was inline with values={...}, which is inconsistent with other snapshots. It has been moved to a new line for better readability and consistency across examples.
1 parent 3488eb2 commit a86eb4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/concepts/persistence.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ In our example, the output of `get_state_history` will look like this:
315315
tasks=(),
316316
),
317317
StateSnapshot(
318-
values={'foo': 'a', 'bar': ['a']}, next=('node_b',),
318+
values={'foo': 'a', 'bar': ['a']},
319+
next=('node_b',),
319320
config={'configurable': {'thread_id': '1', 'checkpoint_ns': '', 'checkpoint_id': '1ef663ba-28f9-6ec4-8001-31981c2c39f8'}},
320321
metadata={'source': 'loop', 'writes': {'node_a': {'foo': 'a', 'bar': ['a']}}, 'step': 1},
321322
created_at='2024-08-29T19:19:38.819946+00:00',

0 commit comments

Comments
 (0)