diff --git a/eth_portfolio/_cache.py b/eth_portfolio/_cache.py index 70b341de..b18210aa 100644 --- a/eth_portfolio/_cache.py +++ b/eth_portfolio/_cache.py @@ -33,7 +33,7 @@ def get_cache_file_path(args, kwargs): if inspect.iscoroutinefunction(fn): queue = Queue() - + async def cache_deco_worker_coro() -> NoReturn: try: while True: @@ -46,7 +46,7 @@ async def cache_deco_worker_coro() -> NoReturn: return loads(await f.read()) except EOFError: pass - + async_result: T = await fn(*args, **kwargs) try: await __cache_write(cache_path, async_result)