@@ -591,23 +591,23 @@ def cached(
591591
592592 Args:
593593 cache: Cache instance, ``dict``, or callable ``(self) -> cache`` for
594- per-instance caches. ``None`` defaults to an unbounded
595- :class:`LRUCache`.
594+ per-instance caches. ``None`` defaults to an unbounded
595+ :class:`LRUCache`.
596596 key_maker: Converts ``(args, kwds)`` to a hashable key. Built-ins:
597- :func:`make_key` (default), :func:`make_hash_key`,
598- :func:`make_typed_key`.
597+ :func:`make_key` (default), :func:`make_hash_key`,
598+ :func:`make_typed_key`.
599599 clear_reuse: Pass ``reuse=True`` to ``cache.clear()`` when
600- :func:`cache_clear` is called.
600+ :func:`cache_clear` is called.
601601 callback: Called as ``callback(event, key, value)`` on every hit/miss.
602- May be a coroutine in async contexts.
602+ May be a coroutine in async contexts.
603603 postprocess: Optional ``(value) -> value`` transform applied before
604- returning a result to the caller. Ready-to-use options:
604+ returning a result to the caller. Ready-to-use options:
605605
606- * ``None`` - return the cached object as-is.
607- * :func:`postprocess_copy` - shallow-copy.
608- * :func:`postprocess_copy_mutables` - shallow-copy only `dict`, `list` and `set` (default).
609- * :func:`postprocess_deepcopy` - deep-copy.
610- * :func:`postprocess_deepcopy_mutables` - deep-copy only `dict`, `list` and `set`.
606+ * ``None`` - return the cached object as-is.
607+ * :func:`postprocess_copy` - shallow-copy.
608+ * :func:`postprocess_copy_mutables` - shallow-copy only `dict`, `list` and `set` (default).
609+ * :func:`postprocess_deepcopy` - deep-copy.
610+ * :func:`postprocess_deepcopy_mutables` - deep-copy only `dict`, `list` and `set`.
611611
612612 Note:
613613 Pass ``cachebox__ignore=True`` at call-time to bypass the cache.
@@ -703,7 +703,7 @@ def get_cached_callback(cached_func: object) -> _Callback | None:
703703 return cached_func .callback # type: ignore
704704
705705
706- def clear_cached_cache (cached_func : object ) -> BaseCacheImpl :
706+ def clear_cached_cache (cached_func : object ) -> None :
707707 """
708708 A way to call ``cached_func.cache_clear()``, without type-hint warnings.
709709
0 commit comments