famafrench.utils.lru_cached_method¶
-
famafrench.utils.
lru_cached_method
(*lru_args, **lru_kwargs)[source]¶ Wrapper for
methodtools.lru_cache()
enabling recognition of decorated class instance methods by Sphinx.- Parameters
*lru_args (arbitrary) – Variable number of arguments to
methodtools.lru_cache()
**lru_kwargs (arbitrary) – Keyworded, variable-length argument list for
methodtools.lru_cache()
- Returns
decorator – Wrapped function.
- Return type
arbitrary wrapped object