From 5ee044e418a74186885eea36daa4c233a5e7c6ea Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 5 Apr 2023 11:56:15 -0400 Subject: [PATCH] Another `@acm` in `._cacheables` XD --- piker/_cacheables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/_cacheables.py b/piker/_cacheables.py index ba7361c3..6746fc2f 100644 --- a/piker/_cacheables.py +++ b/piker/_cacheables.py @@ -21,7 +21,7 @@ Cacheing apis and toolz. from collections import OrderedDict from contextlib import ( - asynccontextmanager, + asynccontextmanager as acm, ) from tractor.trionics import maybe_open_context @@ -62,7 +62,7 @@ def async_lifo_cache(maxsize=128): return decorator -@asynccontextmanager +@acm async def open_cached_client( brokername: str, ) -> 'Client': # noqa