@@ -100,7 +100,6 @@ def cache_discard(self, *args: Any, **kwargs: Any) -> None:
100100 # of just passing in `self`/`cls`/... directly.
101101
102102
103- @public_module ("asyncstdlib.functools" )
104103class LRUAsyncBoundCallable (LRUAsyncCallable [AC ]):
105104 """A :py:class:`~.LRUAsyncCallable` that is bound like a method"""
106105
@@ -293,16 +292,16 @@ def cache__get(
293292 return LRUAsyncBoundCallable (self , instance )
294293
295294
296- @public_module ("asyncstdlib.functools" )
297295class UncachedLRUAsyncCallable (LRUAsyncCallable [AC ]):
298296 """Wrap the async ``call`` to track accesses as for caching/memoization"""
299297
300298 __slots__ = ("__weakref__" , "__dict__" , "__wrapped__" , "__misses" , "__typed" )
301299
300+ __wrapped__ : AC
302301 __get__ = cache__get
303302
304303 def __init__ (self , call : AC , typed : bool ):
305- self .__wrapped__ = call # type: ignore
304+ self .__wrapped__ = call
306305 self .__misses = 0
307306 self .__typed = typed
308307
@@ -323,7 +322,6 @@ def cache_discard(self, *args: Any, **kwargs: Any) -> None:
323322 return
324323
325324
326- @public_module ("asyncstdlib.functools" )
327325class MemoizedLRUAsyncCallable (LRUAsyncCallable [AC ]):
328326 """Wrap the async ``call`` with async memoization"""
329327
@@ -337,10 +335,11 @@ class MemoizedLRUAsyncCallable(LRUAsyncCallable[AC]):
337335 "__cache" ,
338336 )
339337
338+ __wrapped__ : AC
340339 __get__ = cache__get
341340
342341 def __init__ (self , call : AC , typed : bool ):
343- self .__wrapped__ = call # type: ignore
342+ self .__wrapped__ = call
344343 self .__hits = 0
345344 self .__misses = 0
346345 self .__typed = typed
@@ -377,7 +376,6 @@ def cache_discard(self, *args: Any, **kwargs: Any) -> None:
377376 self .__cache .pop (CallKey .from_call (args , kwargs , typed = self .__typed ), None )
378377
379378
380- @public_module ("asyncstdlib.functools" )
381379class CachedLRUAsyncCallable (LRUAsyncCallable [AC ]):
382380 """Wrap the async ``call`` with async LRU caching of finite capacity"""
383381
@@ -392,10 +390,11 @@ class CachedLRUAsyncCallable(LRUAsyncCallable[AC]):
392390 "__cache" ,
393391 )
394392
393+ __wrapped__ : AC
395394 __get__ = cache__get
396395
397396 def __init__ (self , call : AC , typed : bool , maxsize : int ):
398- self .__wrapped__ = call # type: ignore
397+ self .__wrapped__ = call
399398 self .__hits = 0
400399 self .__misses = 0
401400 self .__typed = typed
0 commit comments