This commit is contained in:
Nuno Campos
2024-08-21 11:27:04 -07:00
parent 4250ff92b8
commit 5fb2c2c6f8
+2 -2
View File
@@ -1,5 +1,5 @@
import asyncio
from typing import Any
from typing import Any, Optional
from pytest_mock import MockerFixture
@@ -14,7 +14,7 @@ async def test_async_batch_store(mocker: MockerFixture) -> None:
class MockStore(BaseStore):
async def aget(
self, pairs: list[tuple[str, str]]
) -> dict[tuple[str, str], dict[str, Any] | None]:
) -> dict[tuple[str, str], Optional[dict[str, Any]]]:
aget(pairs)
return {pair: 1 for pair in pairs}