Skip to content

Commit 2a0c955

Browse files
chore(lint): fix lint in async checkpointer tests (#411)
1 parent b45a446 commit 2a0c955

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/test_async_checkpoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def test_checkpoint_async(
175175

176176

177177
@pytest.fixture
178-
def test_data():
178+
def test_data() -> dict[str, Any]:
179179
"""Fixture providing test data for checkpoint tests."""
180180
config_0: RunnableConfig = {"configurable": {"thread_id": "1", "checkpoint_ns": ""}}
181181
config_1: RunnableConfig = {
@@ -226,13 +226,13 @@ def test_data():
226226
"source": "input",
227227
"step": 2,
228228
"writes": {},
229-
"parents": 1,
229+
"parents": 1, # type: ignore[typeddict-item]
230230
}
231231
metadata_2: CheckpointMetadata = {
232232
"source": "loop",
233233
"step": 1,
234234
"writes": {"foo": "bar"},
235-
"parents": None,
235+
"parents": None, # type: ignore[typeddict-item]
236236
}
237237
metadata_3: CheckpointMetadata = {}
238238

tests/test_checkpoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_checkpoint_table(engine: Any) -> None:
202202

203203

204204
@pytest.fixture
205-
def test_data():
205+
def test_data() -> dict[str, Any]:
206206
"""Fixture providing test data for checkpoint tests."""
207207
config_0: RunnableConfig = {"configurable": {"thread_id": "1", "checkpoint_ns": ""}}
208208
config_1: RunnableConfig = {
@@ -253,13 +253,13 @@ def test_data():
253253
"source": "input",
254254
"step": 2,
255255
"writes": {},
256-
"parents": 1,
256+
"parents": 1, # type: ignore[typeddict-item]
257257
}
258258
metadata_2: CheckpointMetadata = {
259259
"source": "loop",
260260
"step": 1,
261261
"writes": {"foo": "bar"},
262-
"parents": None,
262+
"parents": None, # type: ignore[typeddict-item]
263263
}
264264
metadata_3: CheckpointMetadata = {}
265265

0 commit comments

Comments
 (0)