module documentation

Astroid hooks for understanding functools library module.

Class LruWrappedModel Special attribute model for functions decorated with functools.lru_cache.
Constant LRU_CACHE Undocumented
Function _functools_partial_inference Undocumented
Function _looks_like_functools_member Check if the given Call node is a functools.partial call.
Function _looks_like_lru_cache Check if the given function node is decorated with lru_cache.
Function _transform_lru_cache Undocumented
Variable _looks_like_partial Undocumented
LRU_CACHE: str = (source)

Undocumented

Value
'functools.lru_cache'
def _functools_partial_inference(node: nodes.Call, context: InferenceContext|None = None) -> Iterator[objects.PartialFunction]: (source)

Undocumented

def _looks_like_functools_member(node, member) -> bool: (source)

Check if the given Call node is a functools.partial call.

def _looks_like_lru_cache(node) -> bool: (source)

Check if the given function node is decorated with lru_cache.

def _transform_lru_cache(node, context: InferenceContext|None = None): (source)

Undocumented

_looks_like_partial = (source)

Undocumented