Skip to content

Commit

Permalink
fix (python<3.12): cache.memoize method type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarrara committed Oct 2, 2024
1 parent eea9d10 commit 499fdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yapcache/caches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def set(

async def close(self): ...

def memoize[R](self, fn: Callable[..., Coroutine[Any, Any, R]], *args, **kwargs):
def memoize(self, fn: Callable[P, Coroutine[Any, Any, R]], *args, **kwargs):
from yapcache import memoize

return memoize(self, *args, **kwargs)(fn)
Expand Down

0 comments on commit 499fdbc

Please sign in to comment.