Skip to content

Commit b7fd1cd

Browse files
authored
Merge pull request #45 from liblaf/main
fix: correct typing for `cached` function
2 parents eef012e + c7fdff5 commit b7fd1cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/cachebox/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def cache_clear() -> None:
463463

464464

465465
def cached(
466-
cache: typing.Union[BaseCacheImpl, dict, None],
466+
cache: typing.Union[BaseCacheImpl, dict, typing.Callable[..., BaseCacheImpl], None],
467467
key_maker: typing.Callable[[tuple, dict], typing.Hashable] = make_key,
468468
clear_reuse: bool = False,
469469
callback: typing.Optional[typing.Callable[[int, typing.Any, typing.Any], typing.Any]] = None,

0 commit comments

Comments
 (0)