IGNITE-14686 Fix incorrect type hint for cache's get_all - Fixes #36.
Signed-off-by: Ivan Daschinsky <ivandasch@apache.org>
diff --git a/pyignite/aio_cache.py b/pyignite/aio_cache.py
index f088844..b6b534b 100644
--- a/pyignite/aio_cache.py
+++ b/pyignite/aio_cache.py
@@ -159,7 +159,7 @@
return await cache_put_async(conn, self.cache_info, key, value, key_hint=key_hint, value_hint=value_hint)
@status_to_exception(CacheError)
- async def get_all(self, keys: list) -> list:
+ async def get_all(self, keys: list) -> dict:
"""
Retrieves multiple key-value pairs from cache.
diff --git a/pyignite/cache.py b/pyignite/cache.py
index a2444a4..c0aaaec 100644
--- a/pyignite/cache.py
+++ b/pyignite/cache.py
@@ -253,7 +253,7 @@
)
@status_to_exception(CacheError)
- def get_all(self, keys: list) -> list:
+ def get_all(self, keys: list) -> dict:
"""
Retrieves multiple key-value pairs from cache.