Skip to content

Commit 2e4486e

Browse files
committed
fix: minor fixes
1 parent 9ae0ead commit 2e4486e

File tree

15 files changed

+1183
-1053
lines changed

15 files changed

+1183
-1053
lines changed

libs/langgraph-checkpoint-aws/langgraph_checkpoint_aws/buffered_saver.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
CheckpointTuple,
1313
)
1414

15-
1615
logger = logging.getLogger(__name__)
1716

1817

@@ -96,7 +95,7 @@ def __init__(
9695
"""
9796
if isinstance(saver, BufferedCheckpointSaver):
9897
raise ValueError(f"{type(self).__name__} cannot be nested")
99-
98+
10099
super().__init__(serde=saver.serde)
101100

102101
self._saver = saver
@@ -145,6 +144,7 @@ def flush_on_exit(self):
145144
# Checkpoint and writes are automatically flushed on exit
146145
```
147146
"""
147+
148148
def try_flush():
149149
try:
150150
self.flush()
@@ -153,7 +153,7 @@ def try_flush():
153153
"Failed to auto-flush buffered checkpoint and writes on exit."
154154
)
155155
raise
156-
156+
157157
try:
158158
yield self
159159
except Exception:
@@ -180,6 +180,7 @@ async def aflush_on_exit(self):
180180
# Checkpoint and writes are automatically flushed on exit
181181
```
182182
"""
183+
183184
async def try_aflush():
184185
try:
185186
await self.aflush()
@@ -188,7 +189,7 @@ async def try_aflush():
188189
"Failed to auto-flush buffered checkpoint and writes on exit."
189190
)
190191
raise
191-
192+
192193
try:
193194
yield self
194195
except Exception:

libs/langgraph-checkpoint-aws/tests/integration_tests/agentcore/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ def agentcore_actor_id() -> str:
3232

3333
@pytest.fixture(scope="function")
3434
def agentcore_memory_saver(
35-
agentcore_memory_id,
36-
aws_region,
37-
) -> AgentCoreMemorySaver:
35+
agentcore_memory_id,
36+
aws_region,
37+
) -> AgentCoreMemorySaver:
3838
"""Create AgentCoreMemorySaver instance."""
3939
return AgentCoreMemorySaver(
4040
memory_id=agentcore_memory_id,
4141
region_name=aws_region,
4242
)
43-

0 commit comments

Comments
 (0)